From b59a6a81a313bc6614c20a61b45195cc8407f6e1 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Fri, 10 Jul 2026 20:19:38 +0800 Subject: [PATCH 1/2] chore(ci): harden Codex PR review gate Co-Authored-By: Codex --- .github/workflows/codex_pr_review.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codex_pr_review.yml b/.github/workflows/codex_pr_review.yml index 27351f6..037717e 100644 --- a/.github/workflows/codex_pr_review.yml +++ b/.github/workflows/codex_pr_review.yml @@ -1,7 +1,7 @@ name: Codex PR Review on: - pull_request: + pull_request_target: types: [opened, synchronize, reopened] permissions: @@ -19,7 +19,7 @@ jobs: uses: QuantStrategyLab/AIAuditBridge/.github/workflows/codex_pr_review.yml@main with: caller_concurrency_key: pr-${{ github.event.pull_request.number || github.run_id }} - allow_unconfigured_backend: true + allow_unconfigured_backend: false api_fallback_enabled: "false" direct_api_primary_enabled: "false" secrets: inherit From a6d9cd4e29b57279f40afe3b7e25aa5d381597b6 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Fri, 10 Jul 2026 22:17:26 +0800 Subject: [PATCH 2/2] fix(ci): harden Codex review invocation Co-Authored-By: Codex --- .github/workflows/codex_pr_review.yml | 3 ++- .github/workflows/codex_review_gate.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codex_pr_review.yml b/.github/workflows/codex_pr_review.yml index 037717e..7ebfe30 100644 --- a/.github/workflows/codex_pr_review.yml +++ b/.github/workflows/codex_pr_review.yml @@ -22,7 +22,8 @@ jobs: allow_unconfigured_backend: false api_fallback_enabled: "false" direct_api_primary_enabled: "false" - secrets: inherit + secrets: + CODEX_AUDIT_SERVICE_URL: ${{ secrets.CODEX_AUDIT_SERVICE_URL }} permissions: contents: read id-token: write diff --git a/.github/workflows/codex_review_gate.yml b/.github/workflows/codex_review_gate.yml index 56bcf4e..050094f 100644 --- a/.github/workflows/codex_review_gate.yml +++ b/.github/workflows/codex_review_gate.yml @@ -23,7 +23,7 @@ permissions: pull-requests: read concurrency: - group: codex-review-gate-${{ github.event.pull_request.number }} + group: codex-review-gate-${{ github.event.pull_request.number }}-${{ github.event_name }} cancel-in-progress: true jobs: