Skip to content

Commit c2df65e

Browse files
Pigbibicodex
andcommitted
fix: stabilize reusable codex pr review workflow
Co-Authored-By: Codex <noreply@openai.com>
1 parent b092fc5 commit c2df65e

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/codex_pr_review.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ on:
1313
description: "Stable caller-side key used to cancel stale review jobs for the same PR."
1414
required: false
1515
type: string
16+
bridge_repository:
17+
description: "Trusted repository containing the Codex review runner script."
18+
required: false
19+
type: string
20+
default: "QuantStrategyLab/AIAuditBridge"
21+
bridge_ref:
22+
description: "Trusted ref used to checkout the Codex review runner script."
23+
required: false
24+
type: string
25+
default: "main"
1626
secrets:
1727
CODEX_AUDIT_REUSABLE_WORKFLOW_TOKEN:
1828
description: "Token that can read QuantStrategyLab/AIAuditBridge when this workflow is called from another private repo."
@@ -53,8 +63,8 @@ jobs:
5363
- name: Checkout bridge review scripts
5464
uses: actions/checkout@v6
5565
with:
56-
repository: ${{ github.repository == 'QuantStrategyLab/AIAuditBridge' && 'QuantStrategyLab/AIAuditBridge' || job.workflow_repository }}
57-
ref: ${{ github.repository == 'QuantStrategyLab/AIAuditBridge' && github.event.pull_request.base.sha || job.workflow_sha }}
66+
repository: ${{ inputs.bridge_repository || 'QuantStrategyLab/AIAuditBridge' }}
67+
ref: ${{ inputs.bridge_ref || 'main' }}
5868
path: bridge
5969
token: ${{ secrets.CODEX_AUDIT_REUSABLE_WORKFLOW_TOKEN || github.token }}
6070
persist-credentials: false

0 commit comments

Comments
 (0)