mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-05-04 19:42:40 +00:00
fix: skip auto-review for fork PRs (#25)
Fork PRs don't have access to OIDC tokens or secrets (GitHub security restriction), causing CI failures. Auto-review now only runs for same-repo PRs from collaborators. For fork PRs, use @claude mention to trigger manual review via the claude.yml workflow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
7
.github/workflows/claude-code-review.yml
vendored
7
.github/workflows/claude-code-review.yml
vendored
@@ -12,11 +12,8 @@ on:
|
||||
|
||||
jobs:
|
||||
claude-review:
|
||||
# Optional: Filter by PR author
|
||||
# if: |
|
||||
# github.event.pull_request.user.login == 'external-contributor' ||
|
||||
# github.event.pull_request.user.login == 'new-developer' ||
|
||||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
|
||||
# Skip fork PRs (no OIDC/secrets access). Use @claude mention for fork PR reviews.
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
||||
Reference in New Issue
Block a user