Skip to content

Set least-privilege permissions on the Rust workflow - #9

Merged
Paururo merged 1 commit into
mainfrom
ci/rust-workflow-permissions
Aug 21, 2026
Merged

Set least-privilege permissions on the Rust workflow#9
Paururo merged 1 commit into
mainfrom
ci/rust-workflow-permissions

Conversation

@Paururo

@Paururo Paururo commented Aug 21, 2026

Copy link
Copy Markdown
Member

Resolves the two CodeQL actions/missing-workflow-permissions alerts (rust.yml test and msrv jobs). Both jobs only check out the repository and build, so a top-level permissions: contents: read is the least privilege that still lets them run. Every other workflow already declares its own permissions block.

CodeQL's actions/missing-workflow-permissions flagged both jobs for leaving the GITHUB_TOKEN at its default scopes. Add a top-level contents: read block, which is all the checkout and build steps need.
@github-actions github-actions Bot added the ci CI and repository automation label Aug 21, 2026
@Paururo
Paururo merged commit f87a8c7 into main Aug 21, 2026
11 checks passed
@Paururo
Paururo deleted the ci/rust-workflow-permissions branch August 21, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI and repository automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant