Skip to content

fix(ci): pin guardrail actions to SHAs and guard body-file usage#19232

Merged
clubanderson merged 1 commit into
mainfrom
fix/pin-guardrail-actions
Jun 19, 2026
Merged

fix(ci): pin guardrail actions to SHAs and guard body-file usage#19232
clubanderson merged 1 commit into
mainfrom
fix/pin-guardrail-actions

Conversation

@clubanderson

Copy link
Copy Markdown
Collaborator

Summary

  • Pin actions/checkout and actions/github-script to immutable commit SHAs in scanner-merge-guardrails.yml to prevent supply-chain attacks via tag force-push
  • Guard --body-file usage in kb-nightly-validation.yml so the workflow doesn't crash when kb-gap-report.md isn't generated

Fixes #18643, Fixes #19072

Pin actions/checkout and actions/github-script to immutable commit SHAs
in scanner-merge-guardrails.yml to prevent supply-chain attacks via tag
force-push.

Guard --body-file usage in kb-nightly-validation.yml to handle cases
where kb-gap-report.md is not generated.

Fixes #18643, Fixes #19072

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Copilot AI review requested due to automatic review settings June 19, 2026 19:40
@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign eeshaansa for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Jun 19, 2026
@netlify

netlify Bot commented Jun 19, 2026

Copy link
Copy Markdown

Deploy Preview for kubestellarconsole canceled.

Name Link
🔨 Latest commit 7ad0400
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/6a359b31e21e55000842765a

@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @clubanderson — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@github-actions

Copy link
Copy Markdown
Contributor

🐝 Hi @clubanderson! I'm kubestellar-hive[bot], an automation bot for this repo.

Trusted users — org members and contributors with write access — can mention @kubestellar-hive in a comment to trigger repo automation.
On issues, that mention queues an automated fix attempt. On pull requests, it records extra context for existing automation.
This is not an interactive Q&A bot, so mentions should be treated as requests for automation rather than a conversation.

Automation may take a moment to start, and follow-up happens through workflow activity rather than chat replies.

@kubestellar-prow kubestellar-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens CI workflows by pinning GitHub Actions to immutable commit SHAs (mitigating tag force-push/supply-chain risk) and by preventing the KB Nightly Validation workflow from failing when kb-gap-report.md is not present.

Changes:

  • Pin actions/checkout and actions/github-script to commit SHAs in scanner-merge-guardrails.yml.
  • Guard gh issue create --body-file kb-gap-report.md behind a file-exists check in kb-nightly-validation.yml and fall back to a plain --body.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/scanner-merge-guardrails.yml Pins previously tag-based actions to immutable SHAs for supply-chain hardening.
.github/workflows/kb-nightly-validation.yml Avoids workflow crashes when kb-gap-report.md isn’t generated by conditionally using --body-file.

Comment on lines +136 to +139
gh issue create \
--title "$TITLE" \
--label "kb-gap,triage/needed,help wanted" \
--body "KB Nightly Validation failed. No gap report was generated. See workflow run for details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
@clubanderson clubanderson merged commit 50852c8 into main Jun 19, 2026
26 of 27 checks passed
@kubestellar-prow kubestellar-prow Bot deleted the fix/pin-guardrail-actions branch June 19, 2026 19:52
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

@github-actions

Copy link
Copy Markdown
Contributor

Post-merge build verification passed

Both Go and frontend builds compiled successfully against merge commit 50852c8e398578eea92c3f618941fb3d3775e096.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tier/3-restricted

Projects

None yet

2 participants