diff --git a/patches/sigstore@4.0.0.patch b/patches/sigstore@4.0.0.patch new file mode 100644 index 000000000000..fd9396c6adec --- /dev/null +++ b/patches/sigstore@4.0.0.patch @@ -0,0 +1,13 @@ +diff --git a/dist/config.js b/dist/config.js +index e8b2392f97f2362a61ada39405e322f3881ae93d..e42054bc3b3c2f17a66cdc61fe435628a596f633 100644 +--- a/dist/config.js ++++ b/dist/config.js +@@ -96,7 +96,7 @@ function initWitnesses(options) { + witnesses.push(new sign_1.RekorWitness({ + rekorBaseURL: options.rekorURL, + entryType: options.legacyCompatibility ? 'intoto' : 'dsse', +- fetchOnConflict: false, ++ fetchOnConflict: true, + retry: options.retry ?? exports.DEFAULT_RETRY, + timeout: options.timeout ?? exports.DEFAULT_TIMEOUT, + })); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 053bd7e84c27..12e327893d89 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,6 +24,10 @@ overrides: elliptic: '>=6.6.1' loupe: ^2.3.6 nan: ^2.19.0 + sigstore: 4.0.0 + +patchedDependencies: + sigstore@4.0.0: 0d9fa39ff088202d74fca3bec0d7bc1c2822b4bddcab7cd31627235b21b52b32 importers: @@ -10771,7 +10775,7 @@ snapshots: npm-registry-fetch: 19.1.1 proc-log: 6.1.0 semver: 7.7.3 - sigstore: 4.0.0 + sigstore: 4.0.0(patch_hash=0d9fa39ff088202d74fca3bec0d7bc1c2822b4bddcab7cd31627235b21b52b32) ssri: 13.0.0 transitivePeerDependencies: - supports-color @@ -11389,7 +11393,7 @@ snapshots: npm-registry-fetch: 19.1.1 proc-log: 6.1.0 promise-retry: 2.0.1 - sigstore: 4.0.0 + sigstore: 4.0.0(patch_hash=0d9fa39ff088202d74fca3bec0d7bc1c2822b4bddcab7cd31627235b21b52b32) ssri: 13.0.0 tar: 7.5.2 transitivePeerDependencies: @@ -11871,7 +11875,7 @@ snapshots: signal-exit@4.1.0: {} - sigstore@4.0.0: + sigstore@4.0.0(patch_hash=0d9fa39ff088202d74fca3bec0d7bc1c2822b4bddcab7cd31627235b21b52b32): dependencies: '@sigstore/bundle': 4.0.0 '@sigstore/core': 3.0.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index a51187128d23..4da3aa595218 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -37,3 +37,10 @@ overrides: elliptic: ">=6.6.1" loupe: "^2.3.6" nan: "^2.19.0" + # Pin exactly while patches/sigstore@4.0.0.patch is in place (PR #9703). + # Remove together with the patch once sigstore-js#1709 ships and is consumed + # by libnpmpublish/lerna-lite. + sigstore: "4.0.0" + +patchedDependencies: + sigstore@4.0.0: patches/sigstore@4.0.0.patch