Skip to content

Commit f1f93b9

Browse files
committed
chore: dispatch renamed codex audit workflow
1 parent 4dc46cb commit f1f93b9

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/dispatch_shadow_signal.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
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
)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

0 commit comments

Comments
 (0)