ci: skip Claude review on fork PRs (#1231)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Mrityunjay Raj 2026-07-11 04:16:25 +05:30 committed by GitHub
parent 398737fadc
commit 7785420eb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,8 +6,12 @@ on:
jobs:
claude-review:
# Fork PRs run with a read-only token and no secrets/OIDC id-token, so the
# Claude action can never authenticate there and the job always fails. Skip
# it for forks so those PRs report a clean skipped check instead of a red X.
if: |
github.event.pull_request.draft == false &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.actor != 'graphite-app[bot]' &&
github.actor != 'dependabot[bot]'