Skip to content

ci: declare minimum permissions on workflow files#246

Merged
nicklasl merged 1 commit into
mainfrom
nicklasl/ci-harden-workflow-permissions
May 19, 2026
Merged

ci: declare minimum permissions on workflow files#246
nicklasl merged 1 commit into
mainfrom
nicklasl/ci-harden-workflow-permissions

Conversation

@nicklasl
Copy link
Copy Markdown
Member

Summary

  • Adds explicit workflow-level permissions: blocks to harden GITHUB_TOKEN scope
  • Standard CI workflows get contents: read
  • Lint-pr workflows (running on pull_request_target) get contents: read + pull-requests: write
  • Release workflow gets contents: write + pull-requests: write (needs to create releases/tags and manage release PRs)

Motivated by CVE-2025-30066 — pinning permissions caps token authority if a third-party action is compromised.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicklasl nicklasl marked this pull request as ready for review May 19, 2026 07:55
@nicklasl nicklasl merged commit 8a759e3 into main May 19, 2026
2 checks passed
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.

2 participants