Skip to content

Commit bda6afd

Browse files
Pigbibicodex
andauthored
fix: pin drift snapshot checkout revision (#236)
* fix: pin drift snapshot checkout revision Co-Authored-By: Codex <noreply@openai.com> * ci: retrigger review with updated bridge Co-Authored-By: Codex <noreply@openai.com> --------- Co-authored-by: Codex <noreply@openai.com>
1 parent b3269e8 commit bda6afd

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/reusable-drift-check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
snapshot_checkout_path:
1313
required: true
1414
type: string
15+
snapshot_repository_ref:
16+
required: false
17+
type: string
18+
default: "main"
1519
python_version:
1620
required: false
1721
type: string
@@ -131,7 +135,7 @@ jobs:
131135
uses: actions/checkout@v6
132136
with:
133137
repository: ${{ inputs.snapshot_repository }}
134-
ref: main
138+
ref: ${{ inputs.snapshot_repository_ref }}
135139
token: ${{ secrets.snapshot_repository_token || github.token }}
136140
path: ${{ inputs.snapshot_checkout_path }}
137141

tests/test_reusable_drift_workflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def test_reusable_drift_workflow_enforces_lifecycle_preflight() -> None:
1414
assert "snapshot_repository:" in workflow
1515
assert "snapshot_repository_token:" in workflow
1616
assert "snapshot_checkout_path:" in workflow
17+
assert "snapshot_repository_ref:" in workflow
1718
assert "ai_gateway_service_url:" in workflow
1819
assert "quant_platform_kit_ref:" in workflow
1920
assert "lifecycle_performance_bucket:" in workflow
@@ -38,6 +39,7 @@ def test_reusable_drift_workflow_enforces_lifecycle_preflight() -> None:
3839
) in workflow
3940
assert "quant-lifecycle drift --domain ${{ inputs.strategy_domain }} --no-alerts" in workflow
4041
assert 'repository: ${{ inputs.snapshot_repository }}' in workflow
42+
assert 'ref: ${{ inputs.snapshot_repository_ref }}' in workflow
4143
assert 'path: ${{ inputs.snapshot_checkout_path }}' in workflow
4244
assert 'token: ${{ secrets.snapshot_repository_token || github.token }}' in workflow
4345
assert 'ref: ${{ inputs.quant_platform_kit_ref }}' in workflow

0 commit comments

Comments
 (0)