Skip to content

Trusted publishing does not work in our CI/CD #10

@konard

Description

@konard
3s
3s
Run # Pull the latest changes we just pushed
From https://github.com/link-foundation/lino-arguments
 * branch            main       -> FETCH_HEAD
Already up to date.
npm warn Unknown user config "always-auth". This will stop working in the next major version of npm.

> lino-arguments@0.2.4 changeset:publish
> changeset publish

🦋  info npm info lino-arguments
🦋  info lino-arguments is being published because our local version (0.2.4) has not been published on npm
🦋  info Publishing "lino-arguments" at "0.2.4"
🦋  error an error occurred while publishing lino-arguments: E422 422 Unprocessable Entity - PUT https://registry.npmjs.org/lino-arguments - Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: "repository.url" is "", expected to match "https://github.com/link-foundation/lino-arguments" from provenance 
🦋  error npm warn Unknown user config "always-auth". This will stop working in the next major version of npm.
🦋  error 
🦋  error > lino-arguments@0.2.4 prepare
🦋  error > husky || true
🦋  error 
🦋  error npm warn gitignore-fallback No .npmignore file found, using .gitignore for file exclusion. Consider creating a .npmignore file to explicitly control published files.
🦋  error npm warn gitignore-fallback No .npmignore file found, using .gitignore for file exclusion. Consider creating a .npmignore file to explicitly control published files.
🦋  error npm notice SECURITY NOTICE: Classic tokens expire December 9. Granular tokens now limited to 90 days with 2FA enforced by default. Update your CI/CD workflows to avoid disruption. Learn more: https://gh.io/npm-token-changes
🦋  error npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access
🦋  error npm notice publish Signed provenance statement with source and build information from GitHub Actions
🦋  error npm notice publish Provenance statement published to transparency log: https://search.sigstore.dev/?logIndex=752580455
🦋  error npm error code E422
🦋  error npm error 422 Unprocessable Entity - PUT https://registry.npmjs.org/lino-arguments - Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: "repository.url" is "", expected to match "https://github.com/link-foundation/lino-arguments" from provenance
🦋  error npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2025-12-09T06_27_53_369Z-debug-0.log
🦋  error 
🦋  error packages failed to publish:
🦋  lino-arguments@0.2.4
Error: Process completed with exit code 1.

CI run for more details: https://github.com/link-foundation/lino-arguments/actions/runs/20054176340/job/57515987959

NPM configuration screenshot:

Image

We use https://docs.npmjs.com/trusted-publishers

Also check workflows at https://github.com/link-foundation/test-anywhere for reference.

Please download all logs and data related about the issue to this repository, make sure we compile that data to ./docs/case-studies folder, and use it to do deep case study analysis (also make sure to search online for additional facts and data), in which we will reconstruct timeline/sequence of events, find root causes of the problem, and propose possible solutions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions