-
Notifications
You must be signed in to change notification settings - Fork 0
[codex] Use central Codex PR review workflow #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,5 @@ | ||
| name: Codex PR Review | ||
|
|
||
| # Always run on PRs to guarantee a check run exists for branch protection. | ||
| # The Python script handles skip logic internally for trivial changes. | ||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
|
|
@@ -18,36 +16,13 @@ concurrency: | |
|
|
||
| jobs: | ||
| review: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| env: | ||
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.11" | ||
|
|
||
| - name: Run Codex PR Review | ||
| id: review | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| ANTHROPIC_MODEL: ${{ vars.ANTHROPIC_MODEL || 'claude-sonnet-4-6' }} | ||
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
| OPENAI_MODEL: ${{ vars.OPENAI_MODEL || 'gpt-5.4-mini' }} | ||
| CODEX_AUDIT_SERVICE_URL: ${{ secrets.CODEX_AUDIT_SERVICE_URL }} | ||
| CODEX_AUDIT_SERVICE_AUDIENCE: ${{ vars.CODEX_AUDIT_SERVICE_AUDIENCE || 'quant-codex-audit' }} | ||
| run: python scripts/run_codex_pr_review.py | ||
|
|
||
| - name: Upload review diagnostics | ||
| if: always() | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: codex-pr-review-${{ github.event.pull_request.number }}-${{ github.run_id }} | ||
| path: data/output/codex_pr_review/ | ||
| if-no-files-found: warn | ||
| 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: true | ||
| secrets: inherit | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This switches the review job from explicitly exposing only the review credentials to Useful? React with 👍 / 👎. |
||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| issues: write | ||
| pull-requests: write | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now sends every PR review job to
QuantStrategyLab/AIAuditBridge/.github/workflows/codex_pr_review.yml@main, but the current raw workflow onmainis not callable: its intendedon: workflow_callblock is commented onto a single line and the rest is malformed, so the file has no active reusable-workflow trigger. GitHub's reusable-workflow syntax requires the called workflow to defineon.workflow_call, so PR review runs in this repo will fail during workflow resolution instead of producing the review check until the central workflow is fixed or this caller is pinned to a valid ref.Useful? React with 👍 / 👎.