Skip to content

Add explicit permissions block to CI workflow#5

Merged
mycargus merged 1 commit into
mainfrom
restrict-workflow-permissions
Mar 15, 2026
Merged

Add explicit permissions block to CI workflow#5
mycargus merged 1 commit into
mainfrom
restrict-workflow-permissions

Conversation

@mycargus
Copy link
Copy Markdown
Owner

Problem

The CI workflow had no explicit permissions block, leaving the GITHUB_TOKEN with broad default access.

Changes

  • Add permissions: contents: read at the workflow level, restricting the token to least privilege across all jobs

Restricts GITHUB_TOKEN to contents: read (least privilege) to satisfy
the principle of least privilege and resolve CodeQL alert #1.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mycargus mycargus merged commit 2c16ea9 into main Mar 15, 2026
10 checks passed
@mycargus mycargus deleted the restrict-workflow-permissions branch March 15, 2026 17:18
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