Skip to content

fix: use pull_request_target for PR auto-labeler#420

Merged
brendanjryan merged 1 commit intomainfrom
brendan/fix-pr-label-permissions
Mar 22, 2026
Merged

fix: use pull_request_target for PR auto-labeler#420
brendanjryan merged 1 commit intomainfrom
brendan/fix-pr-label-permissions

Conversation

@brendanjryan
Copy link
Collaborator

The pull_request event doesn't grant write permissions for fork PRs, causing a 403 when applying labels. Switching to pull_request_target runs the workflow in the base repo's context where the token has write access.

Safe here because the labeler only reads file lists from the GitHub API—it doesn't checkout or execute any code from the PR.

@vercel
Copy link

vercel bot commented Mar 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mpp Ready Ready Preview, Comment Mar 22, 2026 2:38pm

Request Review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@brendanjryan brendanjryan merged commit 2c53efa into main Mar 22, 2026
6 of 7 checks passed
@brendanjryan brendanjryan deleted the brendan/fix-pr-label-permissions branch March 22, 2026 14:37
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