Skip to content

fix(sdk): declare repository in package.json for npm provenance - #98

Closed
its-janghoon wants to merge 1 commit into
developfrom
feature/sdk-package-repository
Closed

its-janghoon wants to merge 1 commit into
developfrom
feature/sdk-package-repository

Conversation

@its-janghoon

Copy link
Copy Markdown
Member

Why

publish-sdk (run 38518788158, version 0.6.2) now authenticates via trusted publishing and signs provenance, and npm rejects the upload:

422 Unprocessable Entity - Error verifying sigstore provenance bundle: Failed to validate repository information:
package.json: "repository.url" is "", expected to match "https://github.com/redrob-labs/redrob-code" from provenance

What

Adds repository (git+https://github.com/redrob-labs/redrob-code.git, directory packages/sdk/js) to packages/sdk/js/package.json. script/publish.ts round-trips the whole object, so the field reaches the published tarball.

After merge

Re-dispatch publish-sdk with version=0.6.2, dry_run=false (it checks out develop).

npm rejects a provenance-signed publish (E422) when package.json has no
repository.url matching the repository in the sigstore bundle. publish-sdk
now authenticates through trusted publishing and signs provenance, so the
0.6.2 run reached that check and failed on the empty field. Declare the
repository (with the package directory) so the claim and the bundle agree.
@its-janghoon

Copy link
Copy Markdown
Member Author

Duplicate of #97, which already landed and published @redrob-labs/sdk@0.6.2.

@its-janghoon
its-janghoon deleted the feature/sdk-package-repository branch October 14, 2026 06:28
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