From 131c92d2624a7021fbef0bea228218f5c6e18895 Mon Sep 17 00:00:00 2001 From: jhuang-tw <77732008+jhuang-tw@users.noreply.github.com> Date: Mon, 17 Aug 2026 23:55:46 -0700 Subject: [PATCH] ci: consume expected Windows guard failure --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c00924d..9d82108 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,9 @@ jobs: & powershell -NoProfile -ExecutionPolicy Bypass -File ./skills/scripts/case-guard.ps1 ` -CaseRoot (Join-Path $scratch 'work/force-auth') ` -Force - if ($LASTEXITCODE -eq 0) { throw '-Force bypassed auth.status hard gate' } + $guardExit = $LASTEXITCODE + if ($guardExit -eq 0) { throw '-Force bypassed auth.status hard gate' } + $global:LASTEXITCODE = 0 - name: Smoke (verify + parse + quick route) shell: pwsh