Skip to content

Conversation

@cschetan77
Copy link
Contributor

@cschetan77 cschetan77 commented Jan 16, 2026

Summary

Implements trusted publishing of package using OIDC authentication to eliminate long-lived npm tokens.

Changes

  • Add id-token: write permissions to workflows
  • Update npm CLI to version 11 (includes trusted publishing support ≥11.5.1)
  • Remove --provenance flag (auto-generated with trusted publishing) Refer
  • Remove npm-token dependency
  • Updated Node.js version from 18 to 22 for npm@11 compatibility -
    • .github/workflows/release.yml
    • .github/actions/build/action.yml

Configuration done on npmjs.com

Package Settings → Trusted Publisher → GitHub Actions:

  • Organization: auth0
  • Repository: node-jwks-rsa
  • Workflow: release.yml
  • Environment: release

Benefits

  • Enhanced security with short-lived tokens
  • Automatic provenance attestations
  • No token management needed

Follows OpenSSF trusted publishers standard

@cschetan77 cschetan77 requested a review from a team as a code owner January 16, 2026 06:53
@cschetan77 cschetan77 merged commit fadca56 into master Jan 16, 2026
12 checks passed
@cschetan77 cschetan77 deleted the SDK-7519 branch January 16, 2026 07:34
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.

3 participants