From b4ddbfdb9be18c2c615da537abd663822b25625a Mon Sep 17 00:00:00 2001 From: idy Date: Fri, 27 Nov 2026 00:32:50 +0800 Subject: [PATCH] Use the read-only Codex bootstrap on self-hosted runners --- .github/workflows/codex-openai-review.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codex-openai-review.yml b/.github/workflows/codex-openai-review.yml index a861fcf..9770f77 100644 --- a/.github/workflows/codex-openai-review.yml +++ b/.github/workflows/codex-openai-review.yml @@ -728,8 +728,8 @@ jobs: allow-users: '*' codex-version: ${{ inputs.codex-version }} codex-home: ${{ env.CODEX_HOME }} - permission-profile: :read-only - safety-strategy: drop-sudo + permission-profile: ${{ runner.environment == 'github-hosted' && ':read-only' || '' }} + safety-strategy: ${{ runner.environment == 'self-hosted' && 'read-only' || 'drop-sudo' }} - name: Review pending diff chunks in the PR session id: run_review