Skip to content

ci: scope workflow GITHUB_TOKEN to least privilege#45

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

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

Conversation

@stxkxs

@stxkxs stxkxs commented Jun 20, 2026

Copy link
Copy Markdown
Member

Clears the 3 CodeQL actions/missing-workflow-permissions alerts by adding a top-level permissions: contents: read default to ci.yml and diff.yml. Read-only covers every job; the pr-summary job keeps its job-level pull-requests: write override so PR comments are unaffected. No behavior change.

Add a top-level `permissions: contents: read` default to ci.yml and diff.yml so GITHUB_TOKEN is least-privilege, clearing the 3 CodeQL actions/missing-workflow-permissions alerts. Read-only covers the lint/validate/diff jobs; the pr-summary job keeps its job-level `pull-requests: write` override, so PR comments still work.

Co-authored-by: stxkxsbot <275011021+stxkxsbot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

CI Results

Check Status
YAML Lint
Environment Kustomize Build
dev
staging
production

All validations passed.

@stxkxs stxkxs merged commit a5bf451 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