From 05bc7d9938d6aad332bac09662a645ef699986d1 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Fri, 10 Jul 2026 20:25:54 +0800 Subject: [PATCH 1/2] ci: add Codex review gate Co-Authored-By: Codex --- .github/workflows/codex_pr_review.yml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/codex_pr_review.yml diff --git a/.github/workflows/codex_pr_review.yml b/.github/workflows/codex_pr_review.yml new file mode 100644 index 0000000..037717e --- /dev/null +++ b/.github/workflows/codex_pr_review.yml @@ -0,0 +1,30 @@ +name: Codex PR Review + +on: + pull_request_target: + types: [opened, synchronize, reopened] + +permissions: + contents: read + id-token: write + issues: write + pull-requests: write + +concurrency: + group: codex-pr-review-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + review: + 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: false + api_fallback_enabled: "false" + direct_api_primary_enabled: "false" + secrets: inherit + permissions: + contents: read + id-token: write + issues: write + pull-requests: write From 8a6ea980bde64bd85e9024e163aa48429f395454 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Fri, 10 Jul 2026 22:26:01 +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: