approval white list or single git {add/commit} approvals

Resolved 💬 2 comments Opened Oct 3, 2025 by o1lo01ol1o Closed Dec 23, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

Codex needs a smarter way to handle approvals. I've had to spend way too long repeatedly approving requests to add and commit changes to git. When I approve "git commit {foo}" this should hold for "git commit {bar}". Same with git add, git branch, git checkout, git diff, git status, git push, etc. Only for --force , git reset, git delete, git rm, etc should multiple approvals be required.

This could be implemented with a whitelist of regexps or similar.

FWIW, yolo mode won't work, i've already had codex try to rm -rf .git twice today.

Are you interested in implementing this feature?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected:

  • #4357

Powered by Codex Action

etraut-openai contributor · 8 months ago

We have added an experimental "execution policy rules" feature. You can read about it here.