Skip to content

ci: declare minimum permissions on workflow files#322

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

ci: declare minimum permissions on workflow files#322
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 workflows get contents: write + pull-requests: write

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 08:50
@nicklasl nicklasl merged commit e3fe5ec into main May 20, 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