From c365a10e9f97700f83582aeebafb9521831e839c Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Sat, 11 Jul 2026 08:59:52 +0800 Subject: [PATCH] fix: reuse org token for snapshot artifact access Co-Authored-By: Codex --- .github/workflows/drift-check.yml | 4 ++-- tests/test_drift_workflow_config.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/drift-check.yml b/.github/workflows/drift-check.yml index d954d06..c5ee783 100644 --- a/.github/workflows/drift-check.yml +++ b/.github/workflows/drift-check.yml @@ -44,7 +44,7 @@ jobs: - name: Download latest trusted lifecycle inputs id: snapshot-input env: - GH_TOKEN: ${{ secrets.SNAPSHOT_REPOSITORY_TOKEN }} + GH_TOKEN: ${{ secrets.SNAPSHOT_REPOSITORY_TOKEN || secrets.QSL_REPO_SYNC_TOKEN }} INPUT_ROOT: ${{ runner.temp }}/crypto-lifecycle-inputs run: | set -euo pipefail @@ -212,4 +212,4 @@ jobs: lifecycle_preflight_artifact: lifecycle-preflight-${{ github.run_id }}-${{ github.run_attempt }} secrets: codex_audit_service_url: ${{ secrets.CODEX_AUDIT_SERVICE_URL }} - snapshot_repository_token: ${{ secrets.SNAPSHOT_REPOSITORY_TOKEN }} + snapshot_repository_token: ${{ secrets.SNAPSHOT_REPOSITORY_TOKEN || secrets.QSL_REPO_SYNC_TOKEN }} diff --git a/tests/test_drift_workflow_config.py b/tests/test_drift_workflow_config.py index 5c1382e..eec8759 100644 --- a/tests/test_drift_workflow_config.py +++ b/tests/test_drift_workflow_config.py @@ -35,4 +35,4 @@ def test_drift_workflow_wires_real_pipeline_inputs_and_preflight_bundle() -> Non assert "snapshot_checkout_path: external/CryptoLivePoolPipelines" in workflow assert "lifecycle_preflight_artifact: lifecycle-preflight-${{ github.run_id }}-${{ github.run_attempt }}" in workflow assert "codex_audit_service_url: ${{ secrets.CODEX_AUDIT_SERVICE_URL }}" in workflow - assert "snapshot_repository_token: ${{ secrets.SNAPSHOT_REPOSITORY_TOKEN }}" in workflow + assert "secrets.SNAPSHOT_REPOSITORY_TOKEN || secrets.QSL_REPO_SYNC_TOKEN" in workflow