Commit cf9a6c2
Restrict auto-review to non-fork PRs for security
Adds a guard so pull_request_target only triggers when the PR
originates from the same repo, not from forks. This prevents
external contributors from triggering the action with write
permissions and secrets via prompt injection in PR bodies.
Fork PRs can still be reviewed by explicitly assigning claude[bot].
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ea7c283 commit cf9a6c2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments