Repository navigation
Commit c6f090a
Triage bot: pass review comment bodies as files, not inline arguments
PR #5229's /code-review found seven issues and posted none of them. Its
POST was endpoint-first, which the scoped gh api allowlist covers, but
the body went in as a double-quoted -f argument full of backticks. The
shell reads those as command substitution, so the permission check saw
extra commands no rule allows and dontAsk denied the whole call. Nearly
every review comment quotes code, so this blocks almost every review.
GH_API_ENDPOINT_FIRST_PROMPT now tells the agent to write each body to
the scratch directory and pass it with -F body=@<file>, and its worked
example does the same. No allowlist change: both flows that append the
prompt (review and cleanup) already hold Write and the scratch Edit scope.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 130596b commit c6f090a
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
744 | 756 | | |
745 | 757 | | |
746 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
455 | 458 | | |
456 | 459 | | |
457 | 460 | | |
| |||
507 | 510 | | |
508 | 511 | | |
509 | 512 | | |
510 | | - | |
| 513 | + | |
511 | 514 | | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
512 | 518 | | |
513 | 519 | | |
514 | 520 | | |
| |||
0 commit comments