Skip to content

ci: give workflows a read-only GITHUB_TOKEN - #213

Merged
qisthidev merged 1 commit into
masterfrom
ci/least-privilege-permissions
Nov 1, 2026
Merged

qisthidev merged 1 commit into
masterfrom
ci/least-privilege-permissions

Conversation

@qisthidev

Copy link
Copy Markdown
Member

CodeQL (actions/missing-workflow-permissions) flagged jobs here that ran with the repository default token permissions. This declares contents: read explicitly, so a compromised step or dependency cannot push code or change the repository. Jobs that need more (SonarQube PR decoration, SARIF upload, update PRs) keep their own permissions block.

No behaviour change expected: none of these jobs write with GITHUB_TOKEN.

🤖 Generated with Claude Code

https://claude.ai/code/session_016ZbncuSxCGasuegYpQe3AV

CodeQL (actions/missing-workflow-permissions) flagged jobs that ran with
the repository's default token permissions. Declare `contents: read`
explicitly, so a compromised step or dependency cannot push code or
change the repository. Jobs that need more keep their own block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ZbncuSxCGasuegYpQe3AV
@qisthidev
qisthidev merged commit b1e0e7f into master Nov 1, 2026
10 checks passed
@qisthidev
qisthidev deleted the ci/least-privilege-permissions branch November 1, 2026 13:23
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.

1 participant