Disable the Claude Code Review workflow for PRs from forks, as CLAUDE_CODE_OAUTH_TOKEN cannot be retrieved for such PRs.

This commit is contained in:
SoftFever 2025-08-10 18:49:01 +08:00
parent 0ac0263542
commit 2e63ce2196

View file

@ -12,6 +12,8 @@ on:
jobs:
claude-review:
# Only run for PRs from the same repository (skip forks)
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
# Optional: Filter by PR author
# if: |
# github.event.pull_request.user.login == 'external-contributor' ||