ci: consume expected Windows guard failure

This commit is contained in:
jhuang-tw
2026-08-17 23:55:46 -07:00
parent ae02eb3e7d
commit 131c92d262
+3 -1
View File
@@ -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