Skip to content

fix: add explicit permissions to GitHub workflows#39

Merged
fmueller merged 1 commit intomainfrom
fix/workflow-permissions-codeql
Feb 25, 2026
Merged

fix: add explicit permissions to GitHub workflows#39
fmueller merged 1 commit intomainfrom
fix/workflow-permissions-codeql

Conversation

@fmueller
Copy link
Owner

@fmueller fmueller commented Feb 25, 2026

Summary

  • Adds permissions: contents: read to build.yml (lint, typecheck, and test jobs only need to read the repo)
  • Adds permissions: actions: write to caches.yml (needs to delete caches via gh cache delete)
  • Without explicit permissions, workflows run with overly broad default token permissions

Test plan

  • Verify workflow YAML is valid
  • Confirm CI jobs still pass after merge (build needs read, cache cleanup needs actions:write)

🤖 Generated with Claude Code

Add minimal permissions declarations to build.yml (contents: read) and
caches.yml (actions: write) to avoid running with overly broad default
token permissions. Resolves CodeQL actions/missing-workflow-permissions
alerts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fmueller fmueller merged commit 53b8521 into main Feb 25, 2026
6 checks passed
@fmueller fmueller deleted the fix/workflow-permissions-codeql branch February 25, 2026 13:51
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