ci: allow read-only text tools in the Claude review and report denied programs - #435
Open
arkavo-com wants to merge 1 commit into
Open
ci: allow read-only text tools in the Claude review and report denied programs#435arkavo-com wants to merge 1 commit into
arkavo-com wants to merge 1 commit into
Conversation
… programs The reviewer was denied Bash 28 times on PR #434 because pipeline segments like grep, tail, cut, sort, and xargs were not on the allowlist. Adds those read-only tools through the action's settings input (the one-line --allowedTools form trips GitGuardian's generic-password detector) and makes the diagnostics step list the program names, never arguments, of denied Bash calls so future gaps show in the heartbeat. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FgZDdzrNEtPmbMupyyUTXj
|
❌ Claude Code Review ran on Do not interpret missing findings as a clean review; inspect the execution diagnostics. |
Code Review ✅ ApprovedAllows read-only text tools (grep, tail, cut, sort, uniq, tr, awk, xargs, jq, echo, printf, cd, pwd, test, basename, dirname, stat, file, tac, nl, paste, comm, true, false) in the Claude review workflow via the Was this helpful? React with 👍 / 👎 | Gitar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Claude review on #434 completed with 28 Bash permission denials. Claude Code matches every segment of a pipeline separately, so
git diff | grep x | tail -5is denied unlessgrepandtailare allowed even thoughgitis.settingsinput. Keeping them out of the one-line--allowedToolsstring matters: the longer string tripped GitGuardian's generic-password detector on the first attempt (incident 37073880, a false positive on the allowlist itself).settingspermissions merge with the CLI list, and none of these entries needs the MCP server discovery that--allowedToolsprefixes drive.Split out of #434 because the action refuses to run a workflow that differs from the default branch, so a workflow edit inside a PR disables the review on that PR.
Test plan
settingsJSON parses with 24 entries.🤖 Generated with Claude Code
https://claude.ai/code/session_01FgZDdzrNEtPmbMupyyUTXj