Skip to content

Commit 1711005

Browse files
authored
ci: use pull_request_target for claude review on fork PRs (#10)
1 parent 0939ace commit 1711005

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/claude-code-review.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Claude Code Review
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, synchronize]
66
# Optional: Only run on specific file changes
77
# paths:
@@ -29,6 +29,7 @@ jobs:
2929
- name: Checkout repository
3030
uses: actions/checkout@v4
3131
with:
32+
ref: ${{ github.event.pull_request.head.sha }}
3233
fetch-depth: 1
3334

3435
- name: Run Claude Code Review

0 commit comments

Comments
 (0)