fix: revert claude review trigger to pull_request#2152
Merged
Conversation
Reverts the pull_request_target trigger back to pull_request. The pull_request_target trigger was introduced in #2145 to support fork PRs, but Anthropic's OIDC token exchange endpoint does not accept tokens from pull_request_target events, causing 100% failure rate on all reviews since March 9th. This is a known upstream issue: anthropics/claude-code-action#713 Until Anthropic adds pull_request_target to their OIDC allowlist, we revert to pull_request which works for same-repo branch PRs.
GigaHierz
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Claude Code Review workflow has been failing on every single PR since March 9th with:
Root Cause
PR #2145 changed the trigger from
pull_requesttopull_request_targetto support fork PRs. However, Anthropic's OIDC token exchange endpoint does not accept tokens frompull_request_targetevents — it only allowlistspull_requestin the OIDCevent_nameclaim.This is a known upstream bug: anthropics/claude-code-action#713
Fix
Revert to
pull_requesttrigger, which restores working automatic code reviews for all same-repo branch PRs.Tradeoff
Fork PRs will not get automatic Claude reviews until Anthropic fixes the upstream issue. This is acceptable since the majority of PRs to this repo come from same-repo branches.
Verification
pull_request