From e96c469c8493cf25b39a61127896a0594c2d1dbe Mon Sep 17 00:00:00 2001 From: diego Date: Wed, 11 Feb 2026 15:13:26 -0300 Subject: [PATCH] fix(ci): fix claude-pr-review checkout for fork PRs 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 --- .github/workflows/claude-pr-review.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/claude-pr-review.yml b/.github/workflows/claude-pr-review.yml index 7eaa658a1..05d39dd54 100644 --- a/.github/workflows/claude-pr-review.yml +++ b/.github/workflows/claude-pr-review.yml @@ -60,13 +60,13 @@ jobs: exit 0 fi + # Do NOT set repository/ref here. claude-code-action fetches the + # PR branch itself via `git fetch origin pull/N/head:...`. Overriding + # origin to a fork repo breaks that fetch since PR refs only exist on + # the base repo. - name: Checkout repository if: steps.check.outputs.is_member == 'true' uses: actions/checkout@v4 - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} - fetch-depth: 0 - name: Generate GitHub App token if: steps.check.outputs.is_member == 'true'