Skip Claude review on fork PRs (#559)

Fork PRs don't have access to secrets or OIDC tokens, causing
claude-code-action to fail on OIDC authentication. Skip the job
entirely for cross-repository PRs so CI stays green.
This commit is contained in:
Seth Hobson
2026-05-25 20:26:53 -04:00
committed by GitHub
parent db81b36add
commit f31aba246e
+2 -1
View File
@@ -9,7 +9,8 @@ jobs:
if: |
github.event.pull_request.draft == false &&
github.actor != 'dependabot[bot]' &&
github.event.pull_request.user.login != 'dependabot[bot]'
github.event.pull_request.user.login != 'dependabot[bot]' &&
github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
contents: read