Skip to content

ci: add read-only permissions to 4 remaining workflows#126

Merged
rickcrawford merged 1 commit into
mainfrom
fix/workflow-permissions
May 10, 2026
Merged

ci: add read-only permissions to 4 remaining workflows#126
rickcrawford merged 1 commit into
mainfrom
fix/workflow-permissions

Conversation

@rickcrawford

Copy link
Copy Markdown
Contributor

Summary

  • Adds top-level permissions: contents: read to docs-ci.yml, release-checks.yml, reproducible-build.yml, and wave4-fuzz.yml
  • Closes CodeQL alert #56 (actions/missing-workflow-permissions)
  • ci.yml already had this block; the four other workflows inherited the repo-default token scope. Now every workflow declares its scope explicitly so GITHUB_TOKEN is locked to the minimum needed.

Test plan

  • ruby -ryaml parses all four files cleanly
  • CodeQL re-scan on this branch reports zero actions/missing-workflow-permissions findings
  • No CI lane regresses (the four workflows only need read for checkouts and artifact reads)

Closes the CodeQL `actions/missing-workflow-permissions` warning
(security alert #56) on the four workflows that still inherited the
repository default token scope: docs-ci, release-checks,
reproducible-build, and wave4-fuzz. Each now declares
`permissions: contents: read` at the workflow level so the
GITHUB_TOKEN is locked to the minimum needed for checkouts and
artifact reads.

Mirrors the comment we already use on ci.yml so a future reader
understands why the block is required even though no job in these
workflows currently writes to the repo.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rickcrawford rickcrawford merged commit f358b29 into main May 10, 2026
5 checks passed
@rickcrawford rickcrawford deleted the fix/workflow-permissions branch May 10, 2026 20:34
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