mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 22:14:22 +00:00
refactor(ai-review): switch --allowedTools to --tools for actual restriction
--allowedTools is an approval list (skip permission prompts), redundant with bypassPermissions. --tools is the actual availability whitelist. Also simplified tool list: Bash sub-patterns (gh pr diff *, etc.) aren't supported by --tools. The workflow token has contents:read only, so the agent physically cannot push/delete/modify the repo even with full Bash.
This commit is contained in:
1 parent
36e8cc47d9
commit
53ad2836c4
1 file changed
+1
-1
@@ -323,7 +323,7 @@ jobs:
|
|||||||
--model ${{ env.REVIEW_MODEL }}
|
--model ${{ env.REVIEW_MODEL }}
|
||||||
--permission-mode bypassPermissions
|
--permission-mode bypassPermissions
|
||||||
--max-turns 50
|
--max-turns 50
|
||||||
--allowedTools "Agent,Glob,Grep,Read,Write,Bash(gh pr diff *),Bash(gh pr view *),Bash(git diff *),Bash(git log *),Bash(git show *),Bash(cat *),Bash(ls *),Bash(wc *),Bash(head *),Bash(tail *),Bash(find *)"
|
--tools "Agent,Glob,Grep,Read,Write,Bash"
|
||||||
|
|
||||||
# Fallback: if Claude didn't write the review file, extract from execution output
|
# Fallback: if Claude didn't write the review file, extract from execution output
|
||||||
- name: Extract review from execution output (fallback)
|
- name: Extract review from execution output (fallback)
|
||||||
|
|||||||
Reference in new issue
Block a user