Skip to content

Commit 3d1b4fa

Browse files
authored
ci: use central Codex PR review workflow
1 parent 90e2c77 commit 3d1b4fa

3 files changed

Lines changed: 20 additions & 898 deletions

File tree

Lines changed: 10 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,13 @@ 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 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

docs/ARCHITECTURE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)