Skip to content

fix: add repository field to package.json for npm provenance#176

Merged
LiranCohen merged 1 commit into
mainfrom
fix/npm-publish-metadata
Mar 4, 2026
Merged

fix: add repository field to package.json for npm provenance#176
LiranCohen merged 1 commit into
mainfrom
fix/npm-publish-metadata

Conversation

@LiranCohen

Copy link
Copy Markdown
Contributor

Summary

Fixes the npm OIDC trusted publishing failure from #175. The OIDC authentication now works, but npm rejects the publish with E422:

Error verifying sigstore provenance bundle: Failed to validate repository information:
package.json: "repository.url" is "", expected to match "https://github.com/enboxorg/gitd" from provenance

npm's provenance verification requires package.json to have a repository field matching the source repo. This was missing.

Change: Add repository field to package.json pointing to https://github.com/enboxorg/gitd.

Build, test, and lint all pass.

npm OIDC trusted publishing generates provenance attestations that
require package.json repository.url to match the source repository.
Without this field, npm rejects the publish with E422:
'repository.url is "", expected to match https://github.com/enboxorg/gitd'
@LiranCohen LiranCohen merged commit acad199 into main Mar 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant