🌱 [scanner] fix: pin workflow refs to immutable SHA and add fork guard#5947
🌱 [scanner] fix: pin workflow refs to immutable SHA and add fork guard#5947Copilot wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits. 📝 Please follow instructions in the contributing guide to update your commits with the DCO Full details of the Developer Certificate of Origin can be found at developercertificate.org. The list of commits missing DCO signoff:
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
❌ Deploy Preview for kubestellar-docs failed. Why did it fail? →
|
|
Hi @Copilot. Thanks for your PR. I'm waiting for a kubestellar member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Addresses two supply chain security issues: mutable
@mainrefs in reusable workflow calls allow ref-hijacking attacks, andpull_request_targetjobs without fork guards can execute privileged code from untrusted forks.📌 Fixes
📝 Summary of Changes
kubestellar/infrareusable workflow refs from@mainto immutable commit SHAa160acca0bdce1ac6c649e006d680d5f6d53024epull_request_targetjobs incopilot-automation.ymlandpr-verifier.ymlChanges Made
SHA pinning — all 11 affected workflows:
Files:
add-help-wanted.yml,ai-fix.yml,assignment-helper.yml,copilot-automation.yml,copilot-dco.yml,feedback.yml,greetings.yml,label-helper.yml,pr-verifier.yml,scorecard.yml,stale.ymlFork guard —
copilot-automation.ymlandpr-verifier.yml:add-help-wanted.yml— pinned SHAai-fix.yml— pinned SHAassignment-helper.yml— pinned SHAcopilot-automation.yml— pinned SHA + fork guardcopilot-dco.yml— pinned SHAfeedback.yml— pinned SHAgreetings.yml— pinned SHAlabel-helper.yml— pinned SHApr-verifier.yml— pinned SHA + fork guardscorecard.yml— pinned SHAstale.yml— pinned SHAChecklist
Security Considerations
Screenshots or Logs (if applicable)
👀 Reviewer Notes
The SHA
a160acca0bdce1ac6c649e006d680d5f6d53024ecorresponds to the currentmainHEAD ofkubestellar/infra. Whenkubestellar/inframain is updated in future, these pins should be bumped deliberately and reviewed.Original prompt