Repository navigation
Conversation
Set a read-only default token for ci.yml, and give the paths-filter job the pull-requests: read scope it needs to list changed files on PRs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NKoFjbfbJgKfy3aRr46bxn
Owner
|
Thanks for tightening the CI token permissions and keeping the change focused. Reviewed the workflow permissions, confirmed actionlint passes, and checked all six CI jobs are green. Merging this now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This gives
ci.ymlan explicit read-onlyGITHUB_TOKENinstead of relying on the repository's default workflow permissions. It's a small hardening change with no behaviour change.permissions: contents: readcovers every job.changesjob also getspull-requests: read, whichdorny/paths-filterneeds to list changed files onpull_requestevents.GitHub's code scanning (CodeQL
actions/missing-workflow-permissions) and OpenSSF Scorecard flag the current file; I noticed it because my fork keepsci.ymlbyte-identical tolinux-port.Two related changes I can send separately if you want them (I haven't been able to run your release workflow, so I'm only offering them):
release-linux.yml, movecontents,id-tokenandattestations: writefrom the workflow level down to thepublish-linuxjob, so the build job runs with a read-only token.# vX.Y.Zcomments), plus agithub-actionsentry independabot.ymlso the pins stay current.Checked with actionlint 1.7.12 (no findings).
Prepared with Claude Code; posted on my behalf.
🤖 Generated with Claude Code