Skip to content

Commit f92cc3b

Browse files
Update sources/npmRegistryUtils.ts
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent a5d385e commit f92cc3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/npmRegistryUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const getVerificationKeys = once(async (): Promise<Array<{ keyid: string, key: K
4747
// See https://github.com/npm/cli/blob/3a80a7b7d168c23b5e297cba7b47ba5b9875934d/lib/utils/verify-signatures.js#L174
4848
// We only support sigstore for NPM. For other registries
4949
// COREPACK_INTEGRITY_KEYS can be used.
50-
const sigstoreTufClient = await sigstoreTuf.initTUF();
50+
const sigstoreTufClient = await sigstoreTuf.initTUF({ cachePath: path.join(folderUtils.getCorepackHomeFolder(), `_tuf`) });
5151
const keysRaw = await sigstoreTufClient.getTarget(`registry.npmjs.org/keys.json`);
5252
// The format of the key file is undocumented, unfortunately. `rawBytes` is
5353
// the PEM content, i.e. base64 encoded SPKI DER.

0 commit comments

Comments
 (0)