Skip to content

fix: declare repository field for npm trusted publishing#1159

Merged
ericcrosson-bitgo merged 1 commit into
masterfrom
AI-744-ci-use-oidc-capable-npm-for-releases
Jul 21, 2026
Merged

fix: declare repository field for npm trusted publishing#1159
ericcrosson-bitgo merged 1 commit into
masterfrom
AI-744-ci-use-oidc-capable-npm-for-releases

Conversation

@ericcrosson-bitgo

Copy link
Copy Markdown
Contributor

Problem

Release run 29864210735 fails at npm publish with:

npm error 422 Unprocessable Entity - PUT https://registry.npmjs.org/@api-ts%2fopenapi-generator
Error verifying sigstore provenance bundle: Failed to validate repository information:
package.json: "repository.url" is "", expected to match "https://github.com/BitGo/api-ts" from provenance

OIDC trusted publishing itself works — the provenance statement is signed and uploaded — but the registry rejects the tarball because provenance validation requires repository.url in each published package.json to match the repo in the attestation, and no workspace package declared one.

Fix

Declare repository (with directory) in all six workspace manifests, matching the pattern used by BitGo/BitGoWASM where trusted publishing works.

Also carries the AI-744 CI commits switching the release workflow to OIDC-capable npm.

Ticket: AI-744

🤖 Generated with Claude Code

npm trusted publishing signs a provenance statement asserting the
package was built from BitGo/api-ts, and the registry rejects any
tarball whose package.json repository.url does not match (E422).
None of the workspace packages declared a repository field, so
every publish under OIDC failed after upload.

Ticket: AI-744

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ericcrosson-bitgo
ericcrosson-bitgo requested a review from a team as a code owner July 21, 2026 20:17
@linear-code

linear-code Bot commented Jul 21, 2026

Copy link
Copy Markdown

AI-744

@ericcrosson-bitgo
ericcrosson-bitgo merged commit 045a71b into master Jul 21, 2026
6 checks passed
@ericcrosson-bitgo
ericcrosson-bitgo deleted the AI-744-ci-use-oidc-capable-npm-for-releases branch July 21, 2026 20:18
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