mirror of
https://github.com/anthropics/claude-cookbooks.git
synced 2025-10-06 01:00:28 +03:00
Fix CI permissions: Add explicit tool permissions via claude_args
- Add --allowedTools parameter to all three CI workflows - Explicitly allow gh pr comment, diff, view, and echo commands - Also allow Read, Glob, Grep, and WebFetch tools for reviews - Fixes permission denials that prevented comment posting
This commit is contained in:
2
.github/workflows/claude-link-review.yml
vendored
2
.github/workflows/claude-link-review.yml
vendored
@@ -28,5 +28,7 @@ jobs:
|
||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
prompt: "/link-review"
|
||||
claude_args: |
|
||||
--allowedTools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(echo:*),Read,Glob,Grep,WebFetch"
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
2
.github/workflows/claude-model-check.yml
vendored
2
.github/workflows/claude-model-check.yml
vendored
@@ -27,5 +27,7 @@ jobs:
|
||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
prompt: "/model-check"
|
||||
claude_args: |
|
||||
--allowedTools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(echo:*),Read,Glob,Grep,WebFetch"
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
2
.github/workflows/claude-notebook-review.yml
vendored
2
.github/workflows/claude-notebook-review.yml
vendored
@@ -28,5 +28,7 @@ jobs:
|
||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
prompt: "/notebook-review"
|
||||
claude_args: |
|
||||
--allowedTools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(echo:*),Read,Glob,Grep,WebFetch"
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
Reference in New Issue
Block a user