Skip to content

Add least-privilege permissions to triage workflow#219

Merged
tashian merged 1 commit intomainfrom
carl/cicd-security-hardening
Mar 3, 2026
Merged

Add least-privilege permissions to triage workflow#219
tashian merged 1 commit intomainfrom
carl/cicd-security-hardening

Conversation

@tashian
Copy link
Contributor

@tashian tashian commented Mar 3, 2026

Summary

  • Add explicit permissions: block (pull-requests: write, issues: write) to the triage workflow that triggers on pull_request_target, constraining the GITHUB_TOKEN to only the scopes actually needed

Ref: StepSecurity hackerbot-claw analysis

Test plan

  • Verify triage workflow still labels PRs and adds to project board on next external PR

🤖 Generated with Claude Code

Add explicit permissions: block (pull-requests: write, issues: write) to
constrain GITHUB_TOKEN scope on pull_request_target trigger.

Ref: https://www.stepsecurity.io/blog/hackerbot-claw-github-actions-exploitation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tashian tashian merged commit 86629bf into main Mar 3, 2026
13 checks passed
@tashian tashian deleted the carl/cicd-security-hardening branch March 3, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants