Skip to content

Commit b0feff5

Browse files
tommysituclaude
andcommitted
ci(claude-review): switch to pull_request_target for fork PR support
Fork PRs can't acquire an OIDC token or access secrets under pull_request, so claude-code-action fails before review can run. pull_request_target runs in the base repo's context, restoring both. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 3f34e30 commit b0feff5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/claude-code-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Claude Code Review
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, synchronize, ready_for_review, reopened]
66
# Optional: Only run on specific file changes
77
# paths:

0 commit comments

Comments
 (0)