Guard privileged pull_request_target workflows from fork PRs#5950
Guard privileged pull_request_target workflows from fork PRs#5950Copilot wants to merge 2 commits into
Conversation
❌ 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. |
|
[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. |
📌 Fixes
📝 Summary of Changes
pull_request_targetwithout restricting execution to same-repo PRs, leaving fork PRs able to trigger jobs with write-scoped permissions.pull_request_targetruns only when the PR head repo matchesgithub.repository, while preservingworkflow_dispatchand other non-PR-target triggers.Changes Made
.github/workflows/ai-fix.ymlto block fork-originatedpull_request_targetexecutions on theai-fixjob.github/workflows/copilot-automation.ymlto block fork-originatedpull_request_targetexecutions on thecopilot-automationjobChecklist
Please ensure the following before submitting your PR:
Security Considerations
If this PR modifies any security-sensitive files, confirm:
Leave unchecked if not applicable. See CONTRIBUTING.md for details.
Screenshots or Logs (if applicable)
👀 Reviewer Notes
@main; SHA pinning is intentionally left to the separate tracked issue.