Fix supply chain security: pin reusable workflows to SHA and add fork guard#5948
Fix supply chain security: pin reusable workflows to SHA and add fork guard#5948Copilot 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 in CI/CD workflows: mutable
@mainrefs on reusable workflows allow unreviewed upstream changes to execute with elevated permissions, andpull_request_targetwithout a fork guard exposes write tokens to fork PRs.📝 Summary of Changes
kubestellar/infrareusable workflow references from@mainto immutable SHAaf322d48cc67ade7345cabc6a0ed55c6c7040ee4copilot-automation.ymlto block fork PRs from triggering elevated-permissionpull_request_targetpathChanges Made
reusable-add-help-wanted.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainreusable-ai-fix.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainreusable-assignment-helper.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainreusable-copilot-automation.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainreusable-copilot-dco.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainreusable-feedback.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainreusable-greetings.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainreusable-label-helper.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainreusable-pr-verifier.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainreusable-scorecard.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainreusable-stale.yml@main→@af322d48cc67ade7345cabc6a0ed55c6c7040ee4 # mainifcondition tocopilot-automation.ymlFork guard added to
copilot-automation.yml:Checklist
Security Considerations
Screenshots or Logs (if applicable)
N/A
👀 Reviewer Notes
All 11 workflow files previously referenced
kubestellar/infrareusable workflows at the mutable@mainref. A compromised or unreviewed push toinfra@mainwould silently execute with the permissions declared in each calling workflow (some withcontents: write,pull-requests: write, etc.). The fork guard oncopilot-automation.ymlfollows the pattern established inkubestellar/console.Original prompt