ci: add explicit permissions to GitHub Actions workflows#6440
Merged
wjones127 merged 1 commit intolance-format:mainfrom Apr 8, 2026
Merged
ci: add explicit permissions to GitHub Actions workflows#6440wjones127 merged 1 commit intolance-format:mainfrom
wjones127 merged 1 commit intolance-format:mainfrom
Conversation
Most workflows lacked a `permissions` block, causing GitHub security warnings. Added `permissions: contents: read` at the top level for all affected workflows. Special cases: - `benchmark-comment-trigger`: also needs `pull-requests: read` to call the pulls REST API - `nightly_run`: `run` job needs `actions: write` to dispatch `file_verification.yml` - `rust`: `clippy` job-level permissions updated to include `contents: read` alongside `checks: write` - `cargo-publish`: `build` job updated to include `contents: read` alongside `id-token: write`
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
westonpace
approved these changes
Apr 8, 2026
westonpace
approved these changes
Apr 8, 2026
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.
Most workflows lacked a
permissionsblock, causing GitHub security warnings. Addedpermissions: contents: readat the top level for all affected workflows.Special cases:
benchmark-comment-trigger: also needspull-requests: readto call the pulls REST APInightly_run:runjob needsactions: writeto dispatchfile_verification.ymlrust:clippyjob-level permissions updated to includecontents: readalongsidechecks: writecargo-publish:buildjob updated to includecontents: readalongsideid-token: writeWorkflows already having correct permissions (
claude.yml,claude-code-review.yml,pr-title.yml,stale.yml,rust-benchmark.yml,docs-deploy.yml,codex-fix-ci.yml,codex-backport-pr.yml,file_verification.yml,cargo-publish.yml) were left unchanged or minimally updated.