File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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,10 @@ 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+ secrets : inherit
21+ permissions :
22+ contents : read
23+ id-token : write
24+ issues : write
25+ pull-requests : write
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ platform-config.json (single source of truth)
3838│ │ ├── check_internal_dependency_matrix.py
3939│ │ ├── gate_codex_app_review.py # PR merge gate
4040│ │ ├── inject_platform_config.py # Inject config into index.html
41- │ │ ├── run_codex_pr_review.py # Codex AI PR review
4241│ │ └── sync_strategy_switch_page_asset.py
4342│ ├── tests/ # Python unit tests
4443│ │ ├── test_runtime_settings.py
@@ -74,7 +73,7 @@ platform-config.json (single source of truth)
7473 ├── validate.yml # Python + JS validation (split jobs)
7574 ├── deploy-strategy-switch-console.yml
7675 ├── manual-strategy-switch.yml
77- ├── codex_pr_review.yml
76+ ├── codex_pr_review.yml # Reusable caller to AIAuditBridge
7877 └── codex_review_gate.yml
7978```
8079
You can’t perform that action at this time.
0 commit comments