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 f9ab17d927
commit 6f6b711bc1

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' ||