From efee93efc4862051af2583ab76cf972769ddae5b Mon Sep 17 00:00:00 2001 From: Sanaei Date: Tue, 24 Nov 2026 09:36:36 +0330 Subject: [PATCH] fix(ci): let the PR review run on pull requests from forks claude-code-action v1.0.288 changed allow_fork_prs to default to false, and the workflow follows the floating v1 tag. Every review of a fork pull request has been skipped since: the action step ends without writing a review and the post job fails with nothing posted on the pull request. Opt back in. The workflow already reads the fork's code only from pr-head/ at a pinned SHA, with a read-only token and no command that runs code from the checkout. --- .github/workflows/claude-pr-review.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/claude-pr-review.yml b/.github/workflows/claude-pr-review.yml index bca3ffa15..7f9d66ad7 100644 --- a/.github/workflows/claude-pr-review.yml +++ b/.github/workflows/claude-pr-review.yml @@ -143,6 +143,9 @@ jobs: # Only a fork author lacks write access; an `@claude review` requester passes # the action's own check, so the bypass stays off for it. allowed_non_write_users: ${{ github.event_name == 'pull_request_target' && '*' || '' }} + # Since v1.0.288 the action skips fork pull requests unless told otherwise; the + # head is only ever read from pr-head/ at the pinned SHA, with a read-only token. + allow_fork_prs: "true" # Claude Code loads a CLAUDE.md or .claude/rules/ file the moment a file # beside it is read, so a fork's copy under pr-head/ would brief its own review. settings: '{"claudeMdExcludes": ["**/pr-head/**"]}'