Skip to content

ci: Trusted publishing for npm packages, updating semantic-release#1585

Merged
polymesh-bot merged 9 commits intodevelopfrom
ci/npm-oidc
Apr 1, 2026
Merged

ci: Trusted publishing for npm packages, updating semantic-release#1585
polymesh-bot merged 9 commits intodevelopfrom
ci/npm-oidc

Conversation

@debelio
Copy link
Copy Markdown

@debelio debelio commented Feb 25, 2026

Description

Migrate npm publishing from classic token authentication to OIDC Trusted Publishing.

npm classic tokens were permanently revoked in December 2025. Granular access tokens
are now limited to 90 days for write access, requiring periodic manual rotation.

OIDC Trusted Publishing eliminates token management entirely — GitHub provides
short-lived tokens automatically via its OIDC provider.

Changes:

  • Remove NPM_TOKEN secret from release workflow
  • Add id-token: write permission to enable OIDC token generation
  • Add explicit contents, issues, and pull-requests permissions (previously implicit)
  • Updated semantic-release to the latest version
  • Updated the SonarCloud action

Breaking Changes

JIRA Link

Checklist

  • Updated the Readme.md (if required) ?

@debelio debelio requested a review from a team as a code owner February 25, 2026 14:07
@socket-security
Copy link
Copy Markdown

socket-security Bot commented Feb 25, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedsemantic-release@​24.2.9 ⏵ 25.0.397 +110010093100

View full report

@debelio debelio marked this pull request as draft February 27, 2026 07:53
@debelio debelio marked this pull request as ready for review March 13, 2026 08:20
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 13, 2026

@debelio
Copy link
Copy Markdown
Author

debelio commented Mar 31, 2026

@prashantasdeveloper, would you take a look at this?

Copy link
Copy Markdown
Contributor

@prashantasdeveloper prashantasdeveloper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to accept the sonar issue to get build through

@debelio
Copy link
Copy Markdown
Author

debelio commented Apr 1, 2026

/fast-forward

@polymesh-bot polymesh-bot merged commit a2d0fe3 into develop Apr 1, 2026
17 checks passed
@polymesh-bot polymesh-bot deleted the ci/npm-oidc branch April 1, 2026 09:51
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