Skip to content

Commit 515f781

Browse files
committed
fix(workflows): correct Codex CLI command for approval mode
- Moved `--approval-mode full-auto` flag to the correct position in the Codex CLI command within `codex.yml`. - Ensures proper execution of the workflow with the intended approval mode configuration.
1 parent 3369079 commit 515f781

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/codex.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
export OPENAI_BASE_URL=https://models.github.ai/inference
4444
4545
# any provider string would work here, it's just so codex knows it's using a custom model
46-
codex --approval-mode full-auto --provider github --model openai/gpt-4.1 "$INSTRUCTION"
46+
codex --provider github --model openai/gpt-4.1 "$INSTRUCTION" -- --approval-mode full-auto
4747
4848
if [[ -n $(git status --porcelain) ]]; then
4949
git config user.name "GitHub Models Codex Bot"

0 commit comments

Comments
 (0)