mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 02:50:43 +00:00
test: tighten workspace skill assertion
This commit is contained in:
@@ -47,11 +47,9 @@ describe("security audit workspace skill path escape findings", () => {
|
||||
const findings = await collectWorkspaceSkillSymlinkEscapeFindings({
|
||||
cfg: { agents: { defaults: { workspace: workspaceDir } } } satisfies OpenClawConfig,
|
||||
});
|
||||
const finding = findings.find(
|
||||
(entry) => entry.checkId === "skills.workspace.symlink_escape",
|
||||
);
|
||||
expect(finding?.severity).toBe("warn");
|
||||
expect(finding?.detail).toContain(outsideSkillPath);
|
||||
const finding = requireFinding(findings, "skills.workspace.symlink_escape");
|
||||
expect(finding.severity).toBe("warn");
|
||||
expect(finding.detail).toContain(outsideSkillPath);
|
||||
})()
|
||||
: Promise.resolve(),
|
||||
(async () => {
|
||||
|
||||
Reference in New Issue
Block a user