fix(release): add repository field required by npm provenance - #72
Merged
Merged
Conversation
Trusted publishing signs a provenance statement, and npm rejects it (E422) unless package.json repository.url matches the source repo. Bumps to 1.5.3 since 1.5.2 never reached npm and the workflow only runs on version changes.
mateobur
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 1.5.2 release made it through OIDC auth and signed provenance, but npm rejected the upload with E422:
package.json: "repository.url" is "", expected to match "https://github.com/sysdiglabs/backstage-plugin-sysdig" from provenance. Trusted publishing always attaches provenance, and npm checks it againstrepository.url, so the field is required.The version goes to 1.5.3 because 1.5.2 never reached npm and the release workflow only runs on version changes. I checked with
npm packthatbackstage-cli package prepackkeeps the field in the tarball.