Compare commits

..
Author SHA1 Message Date
Claudeandmhegazy c5de1c2489 Send Bun commands in claude.yml to the safety review
The workflow no longer lists Bun commands as allowed tools, so the review decides on
them. The system prompt says what to do when one is denied.

Co-authored-by: mhegazy <[email protected]>
2026-11-18 05:26:05 +00:00
+3 -3
View File
@@ -79,12 +79,12 @@ jobs:
# --permission-mode auto: a tool call that needs permission and that the allowed tools
# do not cover runs only if Claude Code's safety review passes it. This is also the
# action's default, and it is set here so that the workflow hardening check can see it.
# No --allowedTools, because a rule there skips the review: bun test runs whatever the workspace holds.
# --disallowedTools: of the CI tools that actions: read enables, Claude needs only the run results. A pull
# request controls the text of logs and of job and step names.
# --append-system-prompt: how to use those results where the action denies commands.
# --append-system-prompt: how to use those results where commands are denied.
claude_args: |
--allowedTools "Bash(bun install),Bash(bun test:*),Bash(bun run format),Bash(bun typecheck)"
--disallowedTools "mcp__github_ci__download_job_log,mcp__github_ci__get_workflow_run_details"
--append-system-prompt "The action denies commands such as bun on pull requests whose author is not confirmed to have write access. When that happens, do not ask for changes to allowedTools. Instead call mcp__github_ci__get_ci_status and report the newest run named CI, which is ci.yml. Only a success conclusion means it passed. action_required means a maintainer has not approved it yet, and a run without a conclusion has not finished. Say that the result is for the latest commit of the pull request and not for edits you made, and that the pull request can change its own workflows, so a maintainer should check the run."
--append-system-prompt "A safety review decides whether a command such as bun test may run, and the action denies such commands on pull requests whose author is not confirmed to have write access. If one is denied, do not try the others or ask for changes to allowedTools. On an issue, say what you could not run. On a pull request, call mcp__github_ci__get_ci_status and report the newest run named CI, which is ci.yml. Only a success conclusion means it passed. action_required means a maintainer has not approved it yet, and a run without a conclusion has not finished. Say that the result is for the latest commit of the pull request and not for edits you made, and that the pull request can change its own workflows, so a maintainer should check the run."
--model "claude-opus-4-7"
--permission-mode auto