Skip to content

Declare GITHUB_TOKEN permissions in workflows - #536

Merged
slachiewicz merged 1 commit into
masterfrom
agent/workflow-permissions
Nov 13, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/workflow-permissions

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Both workflows ran with the repository's default token permissions. The CI workflow now gets contents: read, and the release drafter gets only what the shared workflow asks for: contents: write and pull-requests: read.

Closes code scanning alerts 3, 4 and 5 (actions/missing-workflow-permissions). The release drafter runs only on a push to master, so its grant is not exercised by this PR's checks.

@slachiewicz slachiewicz added the build Pull requests that change the build process label Nov 13, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 13, 2026 20:41
@slachiewicz
slachiewicz merged commit cf81533 into master Nov 13, 2026
27 checks passed
@slachiewicz
slachiewicz deleted the agent/workflow-permissions branch November 13, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull requests that change the build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant