Skip to content

Send Bun commands in claude.yml to the safety review - #2096

Merged
mhegazy merged 1 commit into
mainfrom
claude/project-thread-1os8ym
Nov 18, 2026
Merged

mhegazy merged 1 commit into
mainfrom
claude/project-thread-1os8ym

Conversation

@mhegazy

@mhegazy mhegazy commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Human: @mhegazy

Requested by Mohamed · project thread

This repository's @claude workflow no longer pre-approves Bun commands. It stays in auto mode, so the safety review decides on bun install, bun test, bun run format and bun typecheck. The system prompt says what to do when one is denied.

What changes

  • Nothing for users of the action.
  • Here, if auto mode is unavailable, the run falls back to acceptEdits and Bun commands are denied. Edits are still formatted by the hook in .claude/settings.json.

Testing

check_workflow_hardening.py and prettier --check pass. I ran the action's entry point with this workflow's claude_args, the bundled CLI, a mock GitHub server and a scripted model on Linux: bun test and bun run format now go to the review, and file edits and the formatter hook work as before. The review itself is not available in that setup, so a real run on GitHub is still needed to see what it passes.


Generated by Claude Code

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 <mhegazy@anthropic.com>
@mhegazy mhegazy self-assigned this Nov 18, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Comment thread .github/workflows/claude.yml Resolved
Comment thread .github/workflows/claude.yml Resolved
@mhegazy
mhegazy merged commit 6c3921d into main Nov 18, 2026
57 checks passed
@mhegazy
mhegazy deleted the claude/project-thread-1os8ym branch November 18, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants