mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## Why Repository configuration can cause even read-only Git commands to execute helpers, so Git command arguments alone are not enough to establish trust. ## What changed - Remove Git commands from the known-safe command classification on Unix and Windows, including commands nested in supported shells. - Under the `unless-trusted` approval policy, require approval for commands such as `git status` unless an explicit execution policy rule allows them. ## Testing - Cover direct, shell-wrapped, absolute-path, and PowerShell Git commands. - Verify `git status` approval behavior with and without an explicit allow rule. GitOrigin-RevId: dd04e0ddca0c56ba64ae64abe6e658bae7bf5a4d