Skip to content

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

Open
debelio wants to merge 9 commits intodevelopfrom
ci/npm-oidc
Open

ci: Trusted publishing for npm packages, updating semantic-release#1585
debelio wants to merge 9 commits intodevelopfrom
ci/npm-oidc

Conversation

@debelio
Copy link

@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

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

Quality Gate Failed Quality Gate failed

Failed conditions
5 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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