Skip to content

fix(release): add repository field required by npm provenance - #72

Merged
tembleking merged 1 commit into
mainfrom
fix/package-repository-field
Sep 25, 2026
Merged

tembleking merged 1 commit into
mainfrom
fix/package-repository-field

Conversation

@tembleking

Copy link
Copy Markdown
Member

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 against repository.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 pack that backstage-cli package prepack keeps the field in the tarball.

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.
@tembleking
tembleking merged commit d195f95 into main Sep 25, 2026
2 checks passed
@tembleking
tembleking deleted the fix/package-repository-field branch September 25, 2026 08:43
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.

2 participants