Skip to content

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

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

qisthidev merged 1 commit into
mainfrom
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 3a0a0c0 into main Nov 1, 2026
7 checks passed
@qisthidev
qisthidev deleted the ci/least-privilege-permissions branch November 1, 2026 13:25
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