We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5d385e commit f92cc3bCopy full SHA for f92cc3b
sources/npmRegistryUtils.ts
@@ -47,7 +47,7 @@ const getVerificationKeys = once(async (): Promise<Array<{ keyid: string, key: K
47
// See https://github.com/npm/cli/blob/3a80a7b7d168c23b5e297cba7b47ba5b9875934d/lib/utils/verify-signatures.js#L174
48
// We only support sigstore for NPM. For other registries
49
// COREPACK_INTEGRITY_KEYS can be used.
50
- const sigstoreTufClient = await sigstoreTuf.initTUF();
+ const sigstoreTufClient = await sigstoreTuf.initTUF({ cachePath: path.join(folderUtils.getCorepackHomeFolder(), `_tuf`) });
51
const keysRaw = await sigstoreTufClient.getTarget(`registry.npmjs.org/keys.json`);
52
// The format of the key file is undocumented, unfortunately. `rawBytes` is
53
// the PEM content, i.e. base64 encoded SPKI DER.
0 commit comments