diff --git a/docs/tools/plugin.md b/docs/tools/plugin.md index e538e64d70ff..211a149302a8 100644 --- a/docs/tools/plugin.md +++ b/docs/tools/plugin.md @@ -160,6 +160,7 @@ no-op. Plugin `before_install` hooks run later, and only in OpenClaw processes where plugin hooks are loaded, so use `security.installPolicy` for operator-owned install decisions instead. The flag does not override a block or policy failure. +It also does not bypass `before_install` hook blocks. See [Skills config](/tools/skills-config#operator-install-policy-securityinstallpolicy) for the shared `security.installPolicy` exec schema used by both skills and diff --git a/src/plugins/install-security-scan.runtime.ts b/src/plugins/install-security-scan.runtime.ts index 50436b57c20e..64bdccc47b07 100644 --- a/src/plugins/install-security-scan.runtime.ts +++ b/src/plugins/install-security-scan.runtime.ts @@ -1000,7 +1000,6 @@ export async function scanInstalledPackageDependencyTreeRuntime(params: { const runPolicy = () => runOperatorInstallPolicy({ config: params.config, - dangerouslyForceUnsafeInstall: params.dangerouslyForceUnsafeInstall, logger: params.logger, onInstallPolicyWarning: params.onInstallPolicyWarning, origin: { type: "plugin-dependency-tree" },