Skip to content

Restrict GITHUB_TOKEN permissions in CI workflow#1

Merged
derrickreimer merged 1 commit into
mainfrom
fix-workflow-permissions
May 14, 2026
Merged

Restrict GITHUB_TOKEN permissions in CI workflow#1
derrickreimer merged 1 commit into
mainfrom
fix-workflow-permissions

Conversation

@derrickreimer

Copy link
Copy Markdown
Member

Summary

  • Adds workflow-level permissions: contents: read to .github/workflows/ci.yml
  • Resolves CodeQL actions/missing-workflow-permissions alerts (Restrict GITHUB_TOKEN permissions in CI workflow #1, #2) on the test and deploy jobs
  • Both jobs only need read access; deploy authenticates to Fly via FLY_API_TOKEN, not GITHUB_TOKEN

Test plan

  • CI passes on this PR
  • CodeQL alerts close automatically after merge to main

Adds an explicit workflow-level permissions block with contents: read
to follow the principle of least privilege. Resolves CodeQL alerts
flagging the missing permissions on the test and deploy jobs; neither
job needs write access to the repository (deploy uses FLY_API_TOKEN).
@derrickreimer derrickreimer merged commit d875b5c into main May 14, 2026
5 checks passed
@derrickreimer derrickreimer deleted the fix-workflow-permissions branch May 14, 2026 00:08
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