fix(ci): fix claude-pr-review checkout for fork PRs#827
Merged
diegomrsantos merged 1 commit intosigp:unstablefrom Feb 11, 2026
Merged
Conversation
The checkout step was explicitly setting origin to the fork repo via `repository` and `ref` overrides. The claude-code-action then runs `git fetch origin pull/N/head:...` expecting origin to be the base repo (sigp/anchor) where PR refs live. Remove the overrides so origin stays as the base repo and let the action handle switching to the PR branch internally. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
I'll analyze this and get back to you. |
shane-moore
approved these changes
Feb 11, 2026
Member
shane-moore
left a comment
There was a problem hiding this comment.
yep, had started looking into this as well and found same root cause issue, need origin to stay as sigp/anchor. agree with this approach
diegomrsantos
added a commit
to diegomrsantos/anchor
that referenced
this pull request
Feb 11, 2026
claude-code-action@v1 recently changed (PR #851) to fetch PR branches via `git fetch origin pull/N/head:...` before calling configureGitAuth(). This requires origin to point to the base repo with a token that can access fork PR refs. Fix by: - Removing fork-specific repository/ref overrides from checkout - Generating the app token before checkout and passing it via token: Cherry-pick of sigp#827 and sigp#828 from unstable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
shane-moore
pushed a commit
to shane-moore/anchor
that referenced
this pull request
Feb 17, 2026
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
shane-moore
pushed a commit
to shane-moore/anchor
that referenced
this pull request
Feb 17, 2026
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

Issue Addressed
The
claude-pr-reviewworkflow fails on all fork PRs with:Proposed Changes
Remove the
repositoryandrefoverrides from the checkout step. The explicitrepository: head.repo.full_nameandref: head.refsetoriginto the fork repo, butclaude-code-actioninternally runsgit fetch origin pull/N/head:...expectingoriginto be the base repo (sigp/anchor) where PR refs live. A plainactions/checkout@v4keepsoriginas the base repo, and the action handles switching to the PR branch itself.Additional Info
Confirmed the same failure on multiple fork PRs (#824, shane-moore PRs) while merge-queue PRs from
sigp/anchorsucceed — consistent withoriginpointing to the wrong repo after the fork-specific checkout.