Skip to content

ci: restrict default GITHUB_TOKEN permissions - #263

Merged
gibiw merged 1 commit into
mainfrom
ci/workflow-permissions
Oct 27, 2026
Merged

gibiw merged 1 commit into
mainfrom
ci/workflow-permissions

Conversation

@gibiw

@gibiw gibiw commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Adds a top-level permissions: contents: read to the workflow, so jobs no longer inherit the repository's default token scope. Closes CodeQL alerts #2, #1 (actions/missing-workflow-permissions).

Jobs that publish or create GitHub releases already declare their own job-level permissions, which override the default, so release behaviour is unchanged.

Workflows had no top-level permissions block, so jobs ran with the
repository's default token scope (CodeQL actions/missing-workflow-permissions).
Default to contents: read; publish jobs keep their own job-level grants.
@gibiw
gibiw merged commit 3a7007c into main Oct 27, 2026
18 checks passed
@gibiw
gibiw deleted the ci/workflow-permissions branch October 27, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants