Skip to content

Commit 61bb2c5

Browse files
committed
Restrict reply agent shell permissions to comments endpoint
Narrow gh api permission from wildcard to just the PR comments endpoint. Also add jq permission needed for JSON body construction.
1 parent 9292c5d commit 61bb2c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

review-pr/agents/pr-review-reply.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ agents:
9393

9494
permissions:
9595
allow:
96-
- shell:cmd=gh api *
96+
- shell:cmd=gh api repos/*/pulls/*/comments*
97+
- shell:cmd=jq *
9798
- shell:cmd=grep *
9899
- shell:cmd=cat *

0 commit comments

Comments
 (0)