Skip to content

ci(github): Restrict workflow GITHUB_TOKEN to contents read - #3

Merged
deangrant merged 1 commit into
mainfrom
hotfix/workflow-does-not-contain-permissons
Aug 15, 2026
Merged

ci(github): Restrict workflow GITHUB_TOKEN to contents read#3
deangrant merged 1 commit into
mainfrom
hotfix/workflow-does-not-contain-permissons

Conversation

@deangrant

Copy link
Copy Markdown
Owner

Add explicit least-privilege permissions to the lint and test workflows so they no longer inherit the repository default token scope. This resolves CodeQL missing-workflow-permissions alerts without changing job behavior.

  • Declare permissions: contents: read on the lint workflow.
  • Declare permissions: contents: read on the test workflow.

Add explicit least-privilege permissions to the lint and test workflows so they no longer inherit the repository default
token scope. This resolves CodeQL missing-workflow-permissions alerts without changing job behavior.

* Declare `permissions: contents: read` on the lint workflow.
* Declare `permissions: contents: read` on the test workflow.
@deangrant deangrant self-assigned this Aug 15, 2026
@deangrant
deangrant merged commit 26b64ee into main Aug 15, 2026
7 checks passed
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