test(infra): stabilize main CI tests · openclaw/openclaw@465c4cb
steipete
·
2026-05-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1011,16 +1011,14 @@ $0 \\"$1\\"" touch {marker}`,
|
1011 | 1011 | expect(second.allowlistSatisfied).toBe(false); |
1012 | 1012 | }); |
1013 | 1013 | |
1014 | | -it("prevents allow-always bypass for script wrapper chains", () => { |
| 1014 | +it("keeps policy-blocked script wrapper chains out of allow-always", () => { |
1015 | 1015 | if (process.platform !== "darwin" && process.platform !== "freebsd") { |
1016 | 1016 | return; |
1017 | 1017 | } |
1018 | 1018 | const dir = makeTempDir(); |
1019 | | -makeExecutable(dir, "echo"); |
1020 | 1019 | makeExecutable(dir, "id"); |
1021 | 1020 | const env = makePathEnv(dir); |
1022 | 1021 | const safeBins = resolveSafeBins(undefined); |
1023 | | - |
1024 | 1022 | const { persisted } = resolvePersistedPatterns({ |
1025 | 1023 | command: "/usr/bin/script -q /dev/null /bin/sh -c 'echo warmup-ok'", |
1026 | 1024 | dir, |
@@ -1038,6 +1036,14 @@ $0 \\"$1\\"" touch {marker}`,
|
1038 | 1036 | platform: process.platform, |
1039 | 1037 | }); |
1040 | 1038 | expect(second.allowlistSatisfied).toBe(false); |
| 1039 | +expect( |
| 1040 | +requiresExecApproval({ |
| 1041 | +ask: "on-miss", |
| 1042 | +security: "allowlist", |
| 1043 | +analysisOk: second.analysisOk, |
| 1044 | +allowlistSatisfied: second.allowlistSatisfied, |
| 1045 | +}), |
| 1046 | +).toBe(true); |
1041 | 1047 | }); |
1042 | 1048 | |
1043 | 1049 | it("does not persist comment-tailed payload paths that never execute", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。