Skip to content

Commit c9974d1

Browse files
committed
fix: move tool permissions to claude_args parameter
The allowed_tools parameter should be passed within claude_args using the --allowedTools flag, not as a separate action parameter. Updated both pr-assignment-check and pr-stale-check workflows to use: claude_args: | --max-turns N --allowedTools "Bash,Read,Grep,Glob" This allows Claude to execute gh commands and examine PR/issue content.
1 parent e7913e2 commit c9974d1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/pr-assignment-check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
with:
2727
anthropic_api_key: ${{ secrets.CLAUDE_CODE_API_KEY }}
2828
github_token: ${{ secrets.GITHUB_TOKEN }}
29-
allowed_tools: "Bash,Read,Grep,Glob"
3029
prompt: |
3130
EXEMPT USERS: @maxprilutskiy, @vrcprl, @davidturnbull, @monicabe, @sumitsaurabh927, @AleksandrSl (skip all checks if PR author is one of these)
3231
@@ -41,4 +40,6 @@ jobs:
4140
- Encourage them to find other unassigned issues
4241
4342
If no issues referenced or PR author is properly assigned, do nothing.
44-
claude_args: "--max-turns 3"
43+
claude_args: |
44+
--max-turns 3
45+
--allowedTools "Bash,Read,Grep,Glob"

.github/workflows/pr-stale-check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
with:
2222
anthropic_api_key: ${{ secrets.CLAUDE_CODE_API_KEY }}
2323
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
allowed_tools: "Bash,Read,Grep,Glob"
2524
prompt: |
2625
EXEMPT USERS: @maxprilutskiy, @vrcprl, @davidturnbull, @monicabe, @sumitsaurabh927, @AleksandrSl
2726
@@ -46,4 +45,6 @@ jobs:
4645
4746
4. Close message template (friendly, concise, no emojis):
4847
"Closing this PR as stale to keep the repo clean. Feel free to reopen or create a new PR once you're ready to continue. Thanks for your contribution!"
49-
claude_args: "--max-turns 10"
48+
claude_args: |
49+
--max-turns 10
50+
--allowedTools "Bash,Read,Grep,Glob"

0 commit comments

Comments
 (0)