Skip to content

ci: scope workflow GITHUB_TOKEN to least privilege#34

Merged
stxkxs merged 1 commit into
mainfrom
fix/workflow-permissions
Jun 20, 2026
Merged

ci: scope workflow GITHUB_TOKEN to least privilege#34
stxkxs merged 1 commit into
mainfrom
fix/workflow-permissions

Conversation

@stxkxs

@stxkxs stxkxs commented Jun 20, 2026

Copy link
Copy Markdown
Member

Clears the 2 CodeQL actions/missing-workflow-permissions alerts by adding a top-level permissions: contents: read default to ci.yml. The build-and-test and lint jobs only read the repo and upload run artifacts (no repo writes). No behavior change.

Add a top-level `permissions: contents: read` default to ci.yml so GITHUB_TOKEN is least-privilege, clearing the 2 CodeQL actions/missing-workflow-permissions alerts. The build-and-test and lint jobs only read + upload run artifacts; nothing writes to the repo.

Co-authored-by: stxkxsbot <275011021+stxkxsbot@users.noreply.github.com>
@stxkxs stxkxs merged commit 8632c77 into main Jun 20, 2026
7 checks passed
@stxkxs stxkxs deleted the fix/workflow-permissions branch June 20, 2026 04:50
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