Skip to content

Commit 8947f7b

Browse files
raifdmuellerclaude
andcommitted
ci: skip claude-code-review on fork PRs
The CLAUDE_CODE_OAUTH_TOKEN secret is not available in fork-PR contexts (GitHub security model), so the action always fails on PRs from raifdmueller/vibe-coding-risk-radar. For fork PRs, CodeRabbit already provides AI review automatically, and @claude mentions (via claude.yml, event-triggered) still work on demand. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a4f2cf0 commit 8947f7b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ on:
1212

1313
jobs:
1414
claude-review:
15-
# Optional: Filter by PR author
16-
# if: |
17-
# github.event.pull_request.user.login == 'external-contributor' ||
18-
# github.event.pull_request.user.login == 'new-developer' ||
19-
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
15+
# Skip on fork PRs — the CLAUDE_CODE_OAUTH_TOKEN secret is not
16+
# available in fork-PR contexts (GitHub security model), so the
17+
# action would fail. For fork PRs, CodeRabbit provides AI review
18+
# and @claude mentions (via claude.yml) still work on demand.
19+
if: github.event.pull_request.head.repo.full_name == github.repository
2020

2121
runs-on: ubuntu-latest
2222
permissions:
@@ -41,4 +41,3 @@ jobs:
4141
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
4242
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4343
# or https://code.claude.com/docs/en/cli-reference for available options
44-

0 commit comments

Comments
 (0)