Skip to content

Declare explicit GITHUB_TOKEN permissions in workflows - #1

Merged
greg0x merged 1 commit into
masterfrom
ci/explicit-workflow-permissions
Aug 30, 2026
Merged

Declare explicit GITHUB_TOKEN permissions in workflows#1
greg0x merged 1 commit into
masterfrom
ci/explicit-workflow-permissions

Conversation

@theharold

Copy link
Copy Markdown

Adds a top-level permissions: block so each workflow declares the GITHUB_TOKEN scopes it needs. This is part of the org-wide switch to a read-only default token permission: workflows that declare their own scopes keep working unchanged after the switch.

Workflows: format.yml (contents: write — its jobs commit and push formatting fixes), validate.yml (contents: read)

No behaviour change.

Sets least-privilege permissions on each workflow so they keep working
once the org default token permission is switched to read-only.
@greg0x
greg0x merged commit 5d77c6e into master Aug 30, 2026
9 of 10 checks passed
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