From ec349c4d15880ae5dec9f61da97406cb628122db Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 16 Feb 2026 10:54:12 +0100 Subject: [PATCH] test(exec-approvals): gate safe-bins assertions on windows --- src/infra/exec-approvals.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/infra/exec-approvals.test.ts b/src/infra/exec-approvals.test.ts index 917e12b923..8251b6ca99 100644 --- a/src/infra/exec-approvals.test.ts +++ b/src/infra/exec-approvals.test.ts @@ -459,6 +459,11 @@ describe("exec approvals allowlist evaluation", () => { safeBins: normalizeSafeBins(["jq"]), cwd: "/tmp", }); + // Safe bins are disabled on Windows (PowerShell parsing/expansion differences). + if (process.platform === "win32") { + expect(result.allowlistSatisfied).toBe(false); + return; + } expect(result.allowlistSatisfied).toBe(true); expect(result.allowlistMatches).toEqual([]); }); @@ -651,6 +656,11 @@ describe("exec approvals node host allowlist check", () => { safeBins: normalizeSafeBins(["jq"]), cwd: "/tmp", }); + // Safe bins are disabled on Windows (PowerShell parsing/expansion differences). + if (process.platform === "win32") { + expect(safe).toBe(false); + return; + } expect(safe).toBe(true); }); });