diff --git a/.github/workflows/claude-autofix.yml b/.github/workflows/claude-autofix.yml index 9f82d5fee2..bfc4b89416 100644 --- a/.github/workflows/claude-autofix.yml +++ b/.github/workflows/claude-autofix.yml @@ -385,6 +385,9 @@ jobs: github_token: ${{ github.token }} claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} allowed_non_write_users: "*" + # Since claude-code-action 1.0.289 the action skips a fork's pull request unless this is + # set; the job above already decides when a fork is handled (see the header). + allow_fork_prs: "true" prompt: | You are resolving merge conflicts on pull request ${{ github.repository }}#${{ github.event.pull_request.number }}. Its base branch `${{ github.event.pull_request.base.ref }}` has been merged into its head, and the files listed in `.autofix/conflicts.txt` have conflicts. The working directory is that unfinished merge. @@ -468,6 +471,9 @@ jobs: github_token: ${{ github.token }} claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} allowed_non_write_users: "*" + # Since claude-code-action 1.0.289 the action skips a fork's pull request unless this is + # set; the job above already decides when a fork is handled (see the header). + allow_fork_prs: "true" prompt: | You are addressing the open review threads on pull request ${{ github.repository }}#${{ github.event.pull_request.number }}. The working directory is the pull request's head${{ steps.merge.outputs.conflicts != '0' && ', with its base branch just merged in' || '' }}. diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 630ff2b27e..9b6fdae5dc 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -468,6 +468,12 @@ jobs: # and posts comments with the minimal-scope GITHUB_TOKEN, never runs the # PR's code, and restricts tools via claude_args below. allowed_non_write_users: "*" + # Since claude-code-action 1.0.289 the action skips every pull request + # from a fork ("Skipped, because allow_fork_prs is not true") unless + # this is set, and the check still passes, so nothing shows the review + # is missing. Fork PRs are the ones this pull_request_target workflow + # exists for; the job's `if:` above decides which are eligible. + allow_fork_prs: "true" prompt: | Perform a thorough code review of pull request ${{ github.repository }}/pull/${{ steps.pr.outputs.number }}.