11name : 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.
53on :
64 pull_request :
75 types : [opened, synchronize, reopened]
@@ -18,36 +16,13 @@ concurrency:
1816
1917jobs :
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 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+ with :
21+ caller_concurrency_key : pr-${{ github.event.pull_request.number || github.run_id }}
22+ allow_unconfigured_backend : true
23+ secrets : inherit
24+ permissions :
25+ contents : read
26+ id-token : write
27+ issues : write
28+ pull-requests : write
0 commit comments