Commit 2348a86
ci: fix Claude Code Review workflow to post PR comments
The Claude Code Review workflow was not posting comments on PRs due to:
1. Insufficient permissions: pull-requests: read (needs write to post)
2. Max turns exhaustion: Claude ran out of 5 turns before posting
3. No guidance for fork PR behavior
Changes:
- Update permissions from pull-requests: read to pull-requests: write
to allow posting PR review comments
- Increase max-turns from 5 to 10 to ensure Claude completes review
and successfully posts the comment
- Add comprehensive documentation about fork PR approval requirements
and setup instructions for maintainers
- Add inline comment explaining the permission change
This fixes the issue where Claude would analyze PRs but never post
the review comments. With write permissions and more turns, Claude
can now complete the review cycle and post feedback.
Fork PRs will require manual approval by maintainers (security best
practice to prevent secret exfiltration).
Related: #722
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 23ece10 commit 2348a86
1 file changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | | - | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | | - | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
0 commit comments