ci: pin codex-action to v1.11 to keep the relay retry overrides (#1670)

#1667 pinned @v1.12 and moved the flaky-relay stream retry tuning from
codex-args into a seeded codex-home config.toml, but the action appends
its own [model_providers.codex-action-responses-proxy] table instead of
merging, so every Codex workflow fails with a TOML duplicate key error.
The overrides cannot be expressed on v1.12 at all.

Pin all three workflows to v1.11, the last release that accepts these
deliberate codex-args overrides under drop-sudo, restoring the original
behavior.
This commit is contained in:
Junmo Kim
2026-08-23 10:37:38 +08:00
committed by GitHub
parent be1ef2a2e4
commit f5a86a8dca
3 changed files with 9 additions and 33 deletions
+3 -11
View File
@@ -114,18 +114,9 @@ jobs:
if: steps.check_skip.outputs.should_skip != 'true'
run: git fetch --all
- name: Seed stream retry tuning in codex-home
run: |
mkdir -p "$RUNNER_TEMP/codex-home"
cat > "$RUNNER_TEMP/codex-home/config.toml" <<'TOML'
[model_providers.codex-action-responses-proxy]
stream_max_retries = 10
stream_idle_timeout_ms = 600000
TOML
- name: Run Codex for Mention Response
if: steps.check_skip.outputs.should_skip != 'true'
uses: openai/codex-action@v1.12
uses: openai/codex-action@v1.11
env:
GH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}
@@ -134,11 +125,12 @@ jobs:
EVENT_TYPE: ${{ steps.check_skip.outputs.event_type }}
IS_PR: ${{ steps.check_skip.outputs.is_pr }}
with:
codex-home: ${{ runner.temp }}/codex-home
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
responses-api-endpoint: ${{ secrets.OPENAI_BASE_URL }}
model: ${{ vars.OPENAI_MODEL || 'gpt-5.4' }}
effort: ${{ vars.OPENAI_EFFORT || 'high' }}
# Tolerate flaky relay streams: more reconnects, longer idle timeout
codex-args: '-c model_providers.codex-action-responses-proxy.stream_max_retries=10 -c model_providers.codex-action-responses-proxy.stream_idle_timeout_ms=600000'
sandbox: danger-full-access
safety-strategy: drop-sudo
prompt-file: .github/prompts/codex-mention-response.md
+3 -11
View File
@@ -103,19 +103,10 @@ jobs:
${{ github.event.pull_request.base.ref }} \
+refs/pull/${{ github.event.pull_request.number }}/head
- name: Seed stream retry tuning in codex-home
run: |
mkdir -p "$RUNNER_TEMP/codex-home"
cat > "$RUNNER_TEMP/codex-home/config.toml" <<'TOML'
[model_providers.codex-action-responses-proxy]
stream_max_retries = 10
stream_idle_timeout_ms = 600000
TOML
- name: Run Codex for PR Review
id: run_codex
if: steps.check_bot.outputs.has_review_for_current_head != 'true'
uses: openai/codex-action@v1.12
uses: openai/codex-action@v1.11
env:
GH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}
@@ -124,11 +115,12 @@ jobs:
LATEST_BOT_REVIEW_COMMIT: ${{ steps.check_bot.outputs.latest_bot_review_commit }}
IS_FOLLOW_UP_REVIEW: ${{ steps.check_bot.outputs.is_follow_up_review }}
with:
codex-home: ${{ runner.temp }}/codex-home
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
responses-api-endpoint: ${{ secrets.OPENAI_BASE_URL }}
model: ${{ vars.OPENAI_MODEL || 'gpt-5.2-codex' }}
effort: ${{ vars.OPENAI_EFFORT || 'high' }}
# Tolerate flaky relay streams: more reconnects, longer idle timeout
codex-args: '-c model_providers.codex-action-responses-proxy.stream_max_retries=10 -c model_providers.codex-action-responses-proxy.stream_idle_timeout_ms=600000'
sandbox: danger-full-access
safety-strategy: drop-sudo
prompt-file: .github/prompts/codex-pr-review.md
+3 -11
View File
@@ -64,27 +64,19 @@ jobs:
with:
fetch-depth: 0
- name: Seed stream retry tuning in codex-home
run: |
mkdir -p "$RUNNER_TEMP/codex-home"
cat > "$RUNNER_TEMP/codex-home/config.toml" <<'TOML'
[model_providers.codex-action-responses-proxy]
stream_max_retries = 10
stream_idle_timeout_ms = 600000
TOML
- name: Run Codex for Issue Auto Response
if: steps.check_bot.outputs.has_bot != 'true'
uses: openai/codex-action@v1.12
uses: openai/codex-action@v1.11
env:
GH_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}
with:
codex-home: ${{ runner.temp }}/codex-home
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
responses-api-endpoint: ${{ secrets.OPENAI_BASE_URL }}
model: ${{ vars.OPENAI_MODEL || 'gpt-5.4' }}
effort: ${{ vars.OPENAI_EFFORT || 'high' }}
# Tolerate flaky relay streams: more reconnects, longer idle timeout
codex-args: '-c model_providers.codex-action-responses-proxy.stream_max_retries=10 -c model_providers.codex-action-responses-proxy.stream_idle_timeout_ms=600000'
sandbox: danger-full-access
safety-strategy: drop-sudo
prompt-file: .github/prompts/issue-auto-response.md