From 7ed2e06066012b5ac186dfe186ec1aa8046e3848 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Fri, 28 Aug 2026 16:49:23 +0800 Subject: [PATCH] feat: sync dedicated strategy health ingress token Co-Authored-By: Codex --- .github/workflows/deploy-strategy-switch-console.yml | 8 ++++++++ python/tests/test_runtime_settings.py | 2 ++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/deploy-strategy-switch-console.yml b/.github/workflows/deploy-strategy-switch-console.yml index 856077d..c42559e 100644 --- a/.github/workflows/deploy-strategy-switch-console.yml +++ b/.github/workflows/deploy-strategy-switch-console.yml @@ -38,6 +38,7 @@ jobs: STRATEGY_SWITCH_CONFIG_KV_NAMESPACE_ID: ${{ secrets.STRATEGY_SWITCH_CONFIG_KV_NAMESPACE_ID || vars.STRATEGY_SWITCH_CONFIG_KV_NAMESPACE_ID }} STRATEGY_SWITCH_CONSOLE_URL: ${{ vars.STRATEGY_SWITCH_CONSOLE_URL }} STRATEGY_SWITCH_SYNC_TOKEN: ${{ secrets.STRATEGY_SWITCH_SYNC_TOKEN || secrets.RUNTIME_SETTINGS_GH_TOKEN }} + STRATEGY_HEALTH_SYNC_TOKEN: ${{ secrets.STRATEGY_HEALTH_SYNC_TOKEN }} CONTROL_PLANE_SYNC_TOKEN: ${{ secrets.CONTROL_PLANE_SYNC_TOKEN }} RESEARCH_TASK_SYNC_TOKEN: ${{ secrets.RESEARCH_TASK_SYNC_TOKEN }} EXECUTION_EVIDENCE_SYNC_TOKEN: ${{ secrets.EXECUTION_EVIDENCE_SYNC_TOKEN }} @@ -130,6 +131,13 @@ jobs: set -euo pipefail printf '%s' "$CONTROL_PLANE_SYNC_TOKEN" | npx wrangler@4.106.0 secret put CONTROL_PLANE_SYNC_TOKEN --config wrangler.toml + - name: Sync optional strategy-health ingress token + if: env.STRATEGY_HEALTH_SYNC_TOKEN != '' + working-directory: web/strategy-switch-console + run: | + set -euo pipefail + printf '%s' "$STRATEGY_HEALTH_SYNC_TOKEN" | npx wrangler@4.106.0 secret put STRATEGY_HEALTH_SYNC_TOKEN --config wrangler.toml + - name: Sync optional research-task ingress token if: env.RESEARCH_TASK_SYNC_TOKEN != '' working-directory: web/strategy-switch-console diff --git a/python/tests/test_runtime_settings.py b/python/tests/test_runtime_settings.py index feef1df..51d0778 100644 --- a/python/tests/test_runtime_settings.py +++ b/python/tests/test_runtime_settings.py @@ -1163,6 +1163,8 @@ def test_strategy_switch_console_deploy_workflow_syncs_bundled_profiles(self): self.assertNotIn("continue-on-error: true", workflow) self.assertIn("STRATEGY_SWITCH_CONSOLE_URL", workflow) self.assertIn("STRATEGY_SWITCH_SYNC_TOKEN", workflow) + self.assertIn("STRATEGY_HEALTH_SYNC_TOKEN", workflow) + self.assertIn("secret put STRATEGY_HEALTH_SYNC_TOKEN", workflow) self.assertIn("RESEARCH_TASK_SYNC_TOKEN", workflow) self.assertIn("secret put RESEARCH_TASK_SYNC_TOKEN", workflow) self.assertIn("CLOUDFLARE_WRANGLER_CONFIG_TOML", workflow)