mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 05:50:43 +00:00
fix(plugins): keep npm bridge updates scanned (#76765)
Keep externalized bundled npm bridge updates on the normal plugin security scanner path instead of granting source-linked official trust without artifact provenance. Thanks @Lucenx9.
This commit is contained in:
@@ -2004,6 +2004,10 @@ describe("syncPluginsForUpdateChannel", () => {
|
||||
spec: "@openclaw/legacy-chat",
|
||||
mode: "update",
|
||||
expectedPluginId: "legacy-chat",
|
||||
}),
|
||||
);
|
||||
expect(installPluginFromNpmSpecMock).not.toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
trustedSourceLinkedOfficialInstall: true,
|
||||
}),
|
||||
);
|
||||
@@ -2150,6 +2154,10 @@ describe("syncPluginsForUpdateChannel", () => {
|
||||
spec: "@openclaw/legacy-chat",
|
||||
mode: "update",
|
||||
expectedPluginId: "legacy-chat",
|
||||
}),
|
||||
);
|
||||
expect(installPluginFromNpmSpecMock).not.toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
trustedSourceLinkedOfficialInstall: true,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -1435,7 +1435,6 @@ export async function syncPluginsForUpdateChannel(params: {
|
||||
spec: npmSpec,
|
||||
mode: "update",
|
||||
expectedPluginId: targetPluginId,
|
||||
trustedSourceLinkedOfficialInstall: true,
|
||||
logger,
|
||||
});
|
||||
}
|
||||
@@ -1444,7 +1443,6 @@ export async function syncPluginsForUpdateChannel(params: {
|
||||
spec: npmSpec,
|
||||
mode: "update",
|
||||
expectedPluginId: targetPluginId,
|
||||
trustedSourceLinkedOfficialInstall: true,
|
||||
logger,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user