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.
This commit is contained in:
Sanaei
2026-11-24 09:36:36 +03:30
parent f0de77f20d
commit efee93efc4
+3
View File
@@ -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/**"]}'