fix(release): lazy-load sigstore verification · openclaw/openclaw@2b0a72b
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,6 @@ import {
|
24 | 24 | win32 as pathWin32, |
25 | 25 | } from "node:path"; |
26 | 26 | import { pathToFileURL } from "node:url"; |
27 | | -import { verify as verifySigstoreBundle } from "sigstore"; |
28 | 27 | import { formatErrorMessage } from "../src/infra/errors.ts"; |
29 | 28 | import { BUNDLED_RUNTIME_SIDECAR_PATHS } from "../src/plugins/runtime-sidecar-paths.ts"; |
30 | 29 | import { readBoundedResponseText } from "./lib/bounded-response.ts"; |
@@ -278,7 +277,8 @@ async function verifySigstoreNpmProvenanceBundle(
|
278 | 277 | bundle: unknown, |
279 | 278 | policy: NpmProvenanceVerificationPolicy, |
280 | 279 | ): Promise<void> { |
281 | | -await verifySigstoreBundle(bundle as Parameters<typeof verifySigstoreBundle>[0], policy); |
| 280 | +const sigstore = require("sigstore") as { verify: VerifyNpmProvenanceBundle }; |
| 281 | +await sigstore.verify(bundle, policy); |
282 | 282 | } |
283 | 283 | |
284 | 284 | export async function verifyNpmProvenanceAttestation(params: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。