fix(ci): use app token for checkout in claude-pr-review#828
Merged
diegomrsantos merged 1 commit intosigp:unstablefrom Feb 11, 2026
Merged
Conversation
claude-code-action@v1 recently changed (PR sigp#851) to fetch PR branches via `git fetch origin pull/N/head:...` before calling configureGitAuth(). The default github.token embedded by actions/checkout cannot fetch fork PR refs. Fix by generating the app token first and passing it to actions/checkout so origin has proper credentials from the start. 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
diegomrsantos
added a commit
to diegomrsantos/anchor
that referenced
this pull request
Feb 11, 2026
claude-code-action@v1 recently changed (PR sigp#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
claude-pr-reviewfails on all fork PRs since Feb 11 with:Proposed Changes
Generate the GitHub App token before the checkout step and pass it via
token:.Root cause:
claude-code-action@v1merged PR #851 on Feb 10, changing branch fetch fromgit fetch origin <branchName>togit fetch origin pull/N/head:<branchName>. The action callssetupBranch()(which runs this fetch) beforeconfigureGitAuth(), so it uses whatever tokenactions/checkoutembedded inorigin. The defaultgithub.tokencannot fetch fork PR refs, causing the failure.Additional Info
repository/refoverrides but didn't address the token issueclaude-code-actionupdate) and started failing on Feb 11github.tokencan access those refs