Skip to content

build: limit the CI token to read-only - #7

Merged
shaikn6 merged 1 commit into
mainfrom
ci/least-privilege-token
Oct 11, 2026
Merged

shaikn6 merged 1 commit into
mainfrom
ci/least-privilege-token

Conversation

@shaikn6

@shaikn6 shaikn6 commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Adds an explicit read-only permissions block to the CI workflow.

Code scanning flagged the workflow for not limiting the GITHUB_TOKEN (actions/missing-workflow-permissions). The repository default is already read-only, so this does not change what the jobs can do today; it pins that in the workflow file so a later change to the repository setting cannot widen it.

The jobs only check out code and run tests, so contents: read is all they need.

@shaikn6
shaikn6 merged commit 167dbd9 into main Oct 11, 2026
4 checks passed
@shaikn6
shaikn6 deleted the ci/least-privilege-token branch October 11, 2026 19:47
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