From 2b0a72bb48cb3dbb2fde5fb630241c3d6d4f06fd Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 19 Jun 2026 19:57:41 +0200 Subject: [PATCH] fix(release): lazy-load sigstore verification --- scripts/openclaw-npm-postpublish-verify.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/openclaw-npm-postpublish-verify.ts b/scripts/openclaw-npm-postpublish-verify.ts index 476ff499dd2..6ce3a25a80e 100644 --- a/scripts/openclaw-npm-postpublish-verify.ts +++ b/scripts/openclaw-npm-postpublish-verify.ts @@ -24,7 +24,6 @@ import { win32 as pathWin32, } from "node:path"; import { pathToFileURL } from "node:url"; -import { verify as verifySigstoreBundle } from "sigstore"; import { formatErrorMessage } from "../src/infra/errors.ts"; import { BUNDLED_RUNTIME_SIDECAR_PATHS } from "../src/plugins/runtime-sidecar-paths.ts"; import { readBoundedResponseText } from "./lib/bounded-response.ts"; @@ -278,7 +277,8 @@ async function verifySigstoreNpmProvenanceBundle( bundle: unknown, policy: NpmProvenanceVerificationPolicy, ): Promise { - await verifySigstoreBundle(bundle as Parameters[0], policy); + const sigstore = require("sigstore") as { verify: VerifyNpmProvenanceBundle }; + await sigstore.verify(bundle, policy); } export async function verifyNpmProvenanceAttestation(params: {