Skip to content

Add comment-triggered code review for PRs from forks - #95

Merged
d-morrison merged 1 commit into
mainfrom
claude/fork-pr-review-trigger
Aug 1, 2026
Merged

Add comment-triggered code review for PRs from forks#95
d-morrison merged 1 commit into
mainfrom
claude/fork-pr-review-trigger

Conversation

@d-morrison

Copy link
Copy Markdown
Member

Summary

Test plan


Generated by Claude Code

claude-code-review.yml can't work for fork PRs: pull_request events
from forks never receive an OIDC token at all (GitHub never sets
ACTIONS_ID_TOKEN_REQUEST_URL for them, regardless of id-token: write -
confirmed on PR #77, run 30686460528/job/91333167166), and switching to
pull_request_target doesn't help either since Anthropic's token-exchange
endpoint rejects OIDC tokens minted under that event (#89,
anthropics/claude-code-action#713). issue_comment is subject to neither
restriction. Add a workflow, gated to OWNER/MEMBER/COLLABORATOR
commenters, that a maintainer can trigger with "@claude review" on any
PR - fork or not - to get the same review claude-code-review.yml gives
same-repo PRs.
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1-2-g6ad689f
Preview removed because the pull request was closed.
2026-08-01 06:02 UTC

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