File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 runs-on : ubuntu-latest
3737 timeout-minutes : 30
3838 env :
39- BRIDGE_REPOSITORY : ${{ vars.SELFHOSTED_CODEX_REVIEW_REPOSITORY || 'QuantStrategyLab/CodexAuditBridge' }}
39+ BRIDGE_REPOSITORY : ${{ vars.CODEX_AUDIT_BRIDGE_REPOSITORY || 'QuantStrategyLab/CodexAuditBridge' }}
40+ BRIDGE_REF : ${{ vars.CODEX_AUDIT_BRIDGE_REF || 'main' }}
4041 BRIDGE_TASK : long_horizon_signal_shadow
4142 BRIDGE_PROVIDER : ${{ github.event.inputs.provider || 'auto' }}
4243 SOURCE_REF : ${{ github.event.inputs.source_ref || 'main' }}
@@ -146,7 +147,7 @@ jobs:
146147 return response.status, json.loads(body) if body else None
147148
148149 dispatch_payload = {
149- "ref": "main" ,
150+ "ref": os.environ["BRIDGE_REF"] ,
150151 "inputs": {
151152 "source_repo": repo,
152153 "issue_number": os.environ["ISSUE_NUMBER"],
@@ -159,7 +160,7 @@ jobs:
159160 }
160161 status, _ = request(
161162 "POST",
162- f"https://api.github.com/repos/{bridge_repo}/actions/workflows/selfhosted_monthly_review .yml/dispatches",
163+ f"https://api.github.com/repos/{bridge_repo}/actions/workflows/codex_audit .yml/dispatches",
163164 dispatch_payload,
164165 auth_token=dispatch_token,
165166 )
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
3+ from pathlib import Path
4+
5+
6+ def test_dispatch_shadow_signal_pins_bridge_ref_via_variable () -> None :
7+ workflow = Path (".github/workflows/dispatch_shadow_signal.yml" ).read_text (encoding = "utf-8" )
8+
9+ assert "BRIDGE_REF: ${{ vars.CODEX_AUDIT_BRIDGE_REF || 'main' }}" in workflow
10+ assert '"ref": os.environ["BRIDGE_REF"]' in workflow
11+ assert "QuantStrategyLab/CodexAuditBridge" in workflow
You can’t perform that action at this time.
0 commit comments