Skip to content

Commit 34bc0aa

Browse files
authored
fix(claude-review): opt in to fork PR-head checkout for actions/checkout v7 (#122)
actions/checkout v7 (bumped in #116) refuses to check out fork pull request code from a workflow_run job unless the step opts in, so every fork PR review fails at the PR-head checkout. The step only reads the code, never runs it, persists no credentials, and strips symlinks afterwards. Signed-off-by: Stephen Crowe <6042774+crowecawcaw@users.noreply.github.com>
1 parent f193776 commit 34bc0aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/reusable_claude_pr_review.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ jobs:
242242
persist-credentials: false
243243
submodules: false
244244
fetch-depth: 0
245+
# checkout v7 refuses fork code under workflow_run without this opt-in.
246+
# Safe here: the code is only read, never run, and no token persists.
247+
allow-unsafe-pr-checkout: true
245248

246249
# Remove any symlinks from the checkout so the agent's read tools can only
247250
# see files inside pr-head/.

0 commit comments

Comments
 (0)