mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 20:11:45 +00:00
test: tighten workspace skill assertion
This commit is contained in:
parent
f5c7465dac
commit
bb8a16f37c
1 changed files with 3 additions and 5 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue