Skip to content

fix(ci): least-privilege permissions on CI workflow (CodeQL) - #20

Merged
williamzujkowski merged 1 commit into
mainfrom
fix/workflow-permissions
Jun 17, 2026
Merged

fix(ci): least-privilege permissions on CI workflow (CodeQL)#20
williamzujkowski merged 1 commit into
mainfrom
fix/workflow-permissions

Conversation

@williamzujkowski

Copy link
Copy Markdown
Collaborator

Adds top-level permissions: { contents: read } to .github/workflows/ci.yml, resolving the actions/missing-workflow-permissions CodeQL alert. The workflow only builds/tests (no writes), so read-only is least-privilege and removes the default broad GITHUB_TOKEN scope. Part of the org-wide 2026-06-17 security sweep.

Resolves the CodeQL actions/missing-workflow-permissions alert. The CI
workflow only checks out + builds + tests, so top-level contents:read is
sufficient (least privilege; removes the default broad GITHUB_TOKEN scope).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@williamzujkowski
williamzujkowski merged commit b7b1a2d into main Jun 17, 2026
6 checks passed
@williamzujkowski
williamzujkowski deleted the fix/workflow-permissions branch June 17, 2026 17:06
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