From 8e4c1088ac77f2eb4d359eab18dd01dd57989d98 Mon Sep 17 00:00:00 2001 From: Patrick Lacey Date: Fri, 3 Jul 2026 01:39:27 -0400 Subject: [PATCH] fix(ci): move codex approval policy into config --- .github/codex/home/config.toml | 1 + .github/workflows/issue-implement.yml | 2 +- .github/workflows/pr-review.yml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .github/codex/home/config.toml diff --git a/.github/codex/home/config.toml b/.github/codex/home/config.toml new file mode 100644 index 0000000..e1c908e --- /dev/null +++ b/.github/codex/home/config.toml @@ -0,0 +1 @@ +approval_policy = "never" diff --git a/.github/workflows/issue-implement.yml b/.github/workflows/issue-implement.yml index 24bfa2d..a6cb854 100644 --- a/.github/workflows/issue-implement.yml +++ b/.github/workflows/issue-implement.yml @@ -155,7 +155,7 @@ jobs: working-directory: ../agent-worktree prompt-file: .github/codex/prompts/issue-implement.md sandbox: workspace-write - codex-args: '["--ask-for-approval", "never"]' + codex-home: .github/codex/home output-file: codex-issue-implementation.md - name: Run project checks if available diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml index 81c5a39..30aeee1 100644 --- a/.github/workflows/pr-review.yml +++ b/.github/workflows/pr-review.yml @@ -183,7 +183,7 @@ jobs: effort: ${{ vars.CODEX_EFFORT || 'medium' }} prompt-file: trusted-base/.github/codex/prompts/pr-review.md sandbox: read-only - codex-args: '["--ask-for-approval", "never"]' + codex-home: .github/codex/home output-file: codex-pr-review.md - name: Post review notes as PR comment