Skip to content

ci: declare minimum permissions on workflow files#110

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

ci: declare minimum permissions on workflow files#110
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
  • lint-pr-name.yaml (runs on pull_request_target) gets contents: read + pull-requests: write
  • pull-requests.yaml and release-please.yaml already had correct permissions

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:56
@nicklasl nicklasl merged commit f621700 into main May 19, 2026
5 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