Skip to content

Commit 11438bc

Browse files
fix(plugins): block untrusted workspace setup-only channel loads
1 parent e20a11e commit 11438bc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/plugins/loader.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5518,9 +5518,10 @@ module.exports = {
55185518
expect(fs.existsSync(marker)).toBe(false);
55195519
expect(registry.channelSetups).toHaveLength(0);
55205520
expect(registry.channels).toHaveLength(0);
5521-
expect(registry.plugins.find((entry) => entry.id === "workspace-shadow")?.status).toBe(
5522-
"disabled",
5523-
);
5521+
expect(registry.plugins.find((entry) => entry.id === "workspace-shadow")).toMatchObject({
5522+
status: "disabled",
5523+
error: "workspace plugin (disabled by default)",
5524+
});
55245525
});
55255526

55265527
it("keeps trusted setup-only workspace channel plugins available when explicitly scoped", () => {

0 commit comments

Comments
 (0)