Skip to content

Commit 37b4a21

Browse files
Pigbibicodex
andcommitted
ci: reuse central codex pr review
Co-Authored-By: Codex <noreply@openai.com>
1 parent 6ef31e5 commit 37b4a21

2 files changed

Lines changed: 7 additions & 933 deletions

File tree

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Codex PR Review
22

3-
# Always run on PRs to guarantee a check run exists for branch protection.
4-
# The Python script handles skip logic internally for trivial changes.
53
on:
64
pull_request:
75
types: [opened, synchronize, reopened]
@@ -18,36 +16,10 @@ concurrency:
1816

1917
jobs:
2018
review:
21-
runs-on: ubuntu-latest
22-
timeout-minutes: 30
23-
env:
24-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
25-
26-
steps:
27-
- name: Checkout
28-
uses: actions/checkout@v6
29-
30-
- name: Set up Python
31-
uses: actions/setup-python@v6
32-
with:
33-
python-version: "3.11"
34-
35-
- name: Run Codex PR Review
36-
id: review
37-
env:
38-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
40-
ANTHROPIC_MODEL: ${{ vars.ANTHROPIC_MODEL || 'claude-sonnet-4-6' }}
41-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
42-
OPENAI_MODEL: ${{ vars.OPENAI_MODEL || 'gpt-5.4-mini' }}
43-
CODEX_AUDIT_SERVICE_URL: ${{ secrets.CODEX_AUDIT_SERVICE_URL }}
44-
CODEX_AUDIT_SERVICE_AUDIENCE: ${{ vars.CODEX_AUDIT_SERVICE_AUDIENCE || 'quant-codex-audit' }}
45-
run: python scripts/run_codex_pr_review.py
46-
47-
- name: Upload review diagnostics
48-
if: always()
49-
uses: actions/upload-artifact@v7
50-
with:
51-
name: codex-pr-review-${{ github.event.pull_request.number }}-${{ github.run_id }}
52-
path: data/output/codex_pr_review/
53-
if-no-files-found: warn
19+
uses: QuantStrategyLab/AIAuditBridge/.github/workflows/codex_pr_review.yml@main
20+
secrets: inherit
21+
permissions:
22+
contents: read
23+
id-token: write
24+
issues: write
25+
pull-requests: write

0 commit comments

Comments
 (0)