Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

test(security): track reviewed cache signal

Rahmanc2bf67d92f79
diff --git a/scripts/dast-target.test.ts b/scripts/dast-target.test.ts
index 780d3701..53c60cd8 100644
--- a/scripts/dast-target.test.ts
+++ b/scripts/dast-target.test.ts
@@ -19,7 +19,7 @@ describe("passive DAST requires an explicit safe target", () => {
expect(result.stderr).not.toContain("private-value");
}
});
- it("runs the target guard before an unconditional passive scanner with unchanged alert policy", () => {
+ it("runs the target guard before an unconditional passive scanner with the reviewed alert policy", () => {
const workflow = readFileSync(".github/workflows/dast.yml", "utf8");
const guard = workflow.indexOf("run: node scripts/check-dast-target.mjs");
const scan = workflow.indexOf("uses: zaproxy/action-baseline@");
@@ -31,7 +31,7 @@ describe("passive DAST requires an explicit safe target", () => {
expect(workflow).toContain("rules_file_name: security/zap-baseline.conf");
expect(workflow).toContain("cmd_options: -m 2 -c security/zap-baseline.conf");
const rules = readFileSync("security/zap-baseline.conf", "utf8").split("\n").filter(line => line && !line.startsWith("#"));
- expect(rules.map(line => line.split("\t")[0])).toEqual(["10015", "10049", "10055", "10096", "90004"]);
+ expect(rules.map(line => line.split("\t")[0])).toEqual(["10015", "10049", "10050", "10055", "10096", "90004"]);
expect(rules.every(line => line.split("\t")[1] === "INFO")).toBe(true);
expect(workflow).not.toContain("-I");
});