Harden GitHub Actions token permissions across flagged workflows#5732
Harden GitHub Actions token permissions across flagged workflows#5732Copilot wants to merge 2 commits into
Conversation
✅ Deploy Preview for kubestellar-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
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. |
|
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. |
|
[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 |
📌 Fixes
📝 Summary of Changes
15 workflows were flagged for over-permissive or undeclared
GITHUB_TOKENpermissions (all scoring 0 on Scorecard token-permissions). This PR applies a consistent least-privilege pattern: default workflow scope is read-only, with write access granted only at the specific job requiring it.permissions: read-allto all in-scope workflows from the issue.actions,checks,contents,issues,pull-requests,statuses,id-token,security-eventswhere applicable).security-events: writeto the analysis job (SARIF upload path) instead of workflow-wide.permissions: read-allintechnical-doc-writer.lock.ymlwhile preserving required job-levelcontents: writegrants.Changes Made
.github/workflows/*.ymlfiles to use top-levelread-all.Checklist
Please ensure the following before submitting your PR:
Screenshots or Logs (if applicable)
N/A (workflow YAML permission-scope changes only).
👀 Reviewer Notes
copilot-dco.ymlandmarkdownlint-cli2.ymlwere intentionally not modified per issue instructions.