fix(security): trust resolved skill-bin paths in allowlist auto-allow

This commit is contained in:
Peter Steinberger
2026-02-24 03:12:22 +00:00
parent 204d9fb404
commit ffd63b7a2c
7 changed files with 243 additions and 32 deletions

View File

@@ -621,7 +621,7 @@ describe("exec approvals allowlist evaluation", () => {
analysis,
allowlist: [],
safeBins: new Set(),
skillBins: new Set(["skill-bin"]),
skillBins: [{ name: "skill-bin", resolvedPath: "/opt/skills/skill-bin" }],
autoAllowSkills: true,
cwd: "/tmp",
});
@@ -647,7 +647,7 @@ describe("exec approvals allowlist evaluation", () => {
analysis,
allowlist: [],
safeBins: new Set(),
skillBins: new Set(["skill-bin"]),
skillBins: [{ name: "skill-bin", resolvedPath: "/tmp/skill-bin" }],
autoAllowSkills: true,
cwd: "/tmp",
});
@@ -673,7 +673,7 @@ describe("exec approvals allowlist evaluation", () => {
analysis,
allowlist: [],
safeBins: new Set(),
skillBins: new Set(["skill-bin"]),
skillBins: [{ name: "skill-bin", resolvedPath: "/opt/skills/skill-bin" }],
autoAllowSkills: true,
cwd: "/tmp",
});