You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] npm publish results in Cannot find module 'sigstore' #9722
Run npm publish --access=public --provenance in the workflow
It fails
Environment
npm: 12.0.0-pre.2
Node.js: 24.6.0
OS Name: ubuntu-latest
System Model Name: unknown
npm config: unavailable (its on a GitHub actions runner), though install-strategy=linked is set in .npmrc
Reacted by ldeluigi, Misode, Taylor Hodge, Martin Pedersen, Grzegorz Olędzki, Fuma Nama, Kane Wang, Víctor Ramírez, Florian Wendelborn, Shiv and 17 more
We hit the same failure on npm 12.0.0 stable (released 2026-07-08), publishing with OIDC trusted publishing + NPM_CONFIG_PROVENANCE=true on GitHub-hosted runners. Same MODULE_NOT_FOUND for sigstore from libnpmpublish/lib/provenance.js.
Root cause appears to be a release packaging bug, not an intended change:
[email protected] still declares "sigstore": "^5.0.0" in its dependencies, and its lib/provenance.js still requires it.
But the published npm-12.0.0.tgz does not contain the module — tar tzf npm-12.0.0.tgz | grep -c '^package/node_modules/sigstore/' returns 0, while npm-11.18.0.tgz bundles it (5 entries). Other sigstore packages (@sigstore/tuf etc.) made it into the 12.0.0 tarball; sigstore itself was dropped somewhere in the bundling step.
Neither the npm 12.0.0 nor the libnpmpublish 12.0.0 release notes mention removing provenance support.
So any npm publish with provenance enabled (explicit --provenance, NPM_CONFIG_PROVENANCE=true, or provenance via trusted publishing) crashes on npm 12.0.0.
Workaround until a patched 12.x ships: pin the 11.x line in CI — npm install -g npm@11 — which restores a working bundled sigstore.
Reacted by Grzegorz Olędzki, Fuma Nama, Florian Wendelborn, Shiv and 3 more
Activity
fix: replace testing-action-deploy with inline OIDC publish steps (#100)
fix: pin release workflow's npm upgrade below v12 (#674)
ci(npm-publish): pin npm to 11.x to avoid sigstore provenance bug (#421)
ci: fix npm publish failing on missing sigstore module
jleclanche commentedon Jul 9, 2026
We hit the same failure on npm 12.0.0 stable (released 2026-07-08), publishing with OIDC trusted publishing +
NPM_CONFIG_PROVENANCE=trueon GitHub-hosted runners. SameMODULE_NOT_FOUNDforsigstorefromlibnpmpublish/lib/provenance.js.Root cause appears to be a release packaging bug, not an intended change:
[email protected]still declares"sigstore": "^5.0.0"in itsdependencies, and itslib/provenance.jsstillrequires it.npm-12.0.0.tgzdoes not contain the module —tar tzf npm-12.0.0.tgz | grep -c '^package/node_modules/sigstore/'returns0, whilenpm-11.18.0.tgzbundles it (5 entries). Other sigstore packages (@sigstore/tufetc.) made it into the 12.0.0 tarball;sigstoreitself was dropped somewhere in the bundling step.So any
npm publishwith provenance enabled (explicit--provenance,NPM_CONFIG_PROVENANCE=true, or provenance via trusted publishing) crashes on npm 12.0.0.Workaround until a patched 12.x ships: pin the 11.x line in CI —
npm install -g npm@11— which restores a working bundledsigstore.ci(cli-release): pin npm to stable 11.x for the provenance publish
Release: pin npm to 11.x for publishing (npm 12.0.0 provenance is bro…
fix(ci): pin npm to 11.x for release publishing (#429)
zdm commentedon Jul 9, 2026
It also failed when just make simple publish:
npm publish.sigstoremodule is missed.ci(tagged-release): pin npm to 11.18.0 to fix provenance publish
Pin npm to 11.x for publish (#49)
ci(release): pin npm to 11.5.1 for provenance publishing
versions([email protected]): Add Resource Packs, Fix Items
73 remaining items
ci: pin [email protected] in publish
Pin [email protected] in publish
Move validate/publish to ubuntu-latest; release 2.0.53 (#13)
ci: move validate to ubuntu-latest; enforce version bump at publish (#37
ci: vendor shared-actions v2 composites, pin [email protected] in publish; r…
ci: pin actions to v7, Dependabot for actions, vendor shared-actions …
R3-527: the release job mirrors prettier-config — approval-gated, npm…
R3-527: the release job mirrors prettier-config — approval-gated, npm…
fix(ci): pin npm exactly and drop obsolete npm upgrade steps (medplum…
Publish OK's npm package from a job that runs no package code (#5571)
Publish OK's npm package from a job that runs no package code (#5571)
Publish the JavaScript player to npm as @wildwinter/game-subtitles.
fix(ci): pin npm to 11.x for trusted publishing, avoiding a 12.0.0 pa…
ci(release): publish to npm with OIDC trusted publishing and provenan…
Use latest npm in publish workflows