Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/claude-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ jobs:
review:
name: Claude Review
runs-on: ubuntu-latest
if: github.event.pull_request.user.login != 'dependabot[bot]'
# Fork PRs run with a read-only token and no access to secrets, so the
# review can't authenticate. Skip them (along with dependabot) until fork
# support is added.
if: >-
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]'
permissions:
contents: read
pull-requests: write
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ Pin to `vX.Y.Z` if you need an immutable reference.
### `claude-review`

Runs Claude Code as a PR reviewer on `pull_request` events. The workflow owns
its trigger filter (skips Dependabot), concurrency group, permissions, and
review prompt — consumers just dispatch.
its trigger filter (skips Dependabot and PRs from forks), concurrency group,
permissions, and review prompt — consumers just dispatch. Fork PRs are skipped
because they run with a read-only token and no access to secrets, so the review
can't authenticate.

```yaml
name: Claude PR Review
Expand Down