-
Notifications
You must be signed in to change notification settings - Fork 172
[bug] Provenance subject pkg:npm/hereby/[email protected] does not match the package: pkg:npm/[email protected] #2359
Copy link
Copy link
Closed
Labels
area:nodejsIssue related to the Node.js builderIssue related to the Node.js buildertype:bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
I just set up the nodejs builder to publish my package with provenance; I had to use the main version because the npm version used in the published workflow is too old and fails, but when I do get it running, it appears to fail because the subject and the package do not match.
To Reproduce
Steps to reproduce the behavior:
npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access
npm verb stack Error: Provenance subject pkg:npm/hereby/[email protected] does not match the package: pkg:npm/[email protected]
npm verb stack at verifyProvenance (/tmp/tmp.FXPIVTdzY6/node_modules/npm/node_modules/libnpmpublish/lib/provenance.js:216:11)
npm verb stack at async buildMetadata (/tmp/tmp.FXPIVTdzY6/node_modules/npm/node_modules/libnpmpublish/lib/publish.js:181:26)
npm verb stack at async publish (/tmp/tmp.FXPIVTdzY6/node_modules/npm/node_modules/libnpmpublish/lib/publish.js:45:44)
npm verb stack at async otplease (/tmp/tmp.FXPIVTdzY6/node_modules/npm/lib/utils/otplease.js:4:12)
npm verb stack at async Publish.exec (/tmp/tmp.FXPIVTdzY6/node_modules/npm/lib/commands/publish.js:123:7)
npm verb stack at async module.exports (/tmp/tmp.FXPIVTdzY6/node_modules/npm/lib/cli-entry.js:61:5)
npm verb cwd /home/runner/work/hereby/hereby
npm verb Linux 5.15.0-1041-azure
npm verb node v18.16.1
npm verb npm v9.8.0
npm ERR! Provenance subject pkg:npm/hereby/[email protected] does not match the package: pkg:npm/[email protected]
npm verb exit 1
npm verb code 1
Expected behavior
Publish succeeds.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:nodejsIssue related to the Node.js builderIssue related to the Node.js buildertype:bugSomething isn't workingSomething isn't working