Skip to content

Conversation

@ZgjimHaziri
Copy link
Contributor

Description

NPMjs changed the policy on classic tokens, and now only allows 90 day tokens. For CI/CD workflows, it has provided an oauth link (with OpenID) between the workflow and the registry. The link got created in the registry, and based on their guide, we need to add id-token: write permissions to the workflow, which allows GitHub Actions to generate OIDC tokens.

Relevant links

NPMjs documentation for trusted publishing

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

@ZgjimHaziri ZgjimHaziri requested a review from a team as a code owner December 17, 2025 14:13
@sonarqubecloud
Copy link

@ZgjimHaziri ZgjimHaziri merged commit 05c11c4 into master Dec 17, 2025
5 checks passed
@ZgjimHaziri ZgjimHaziri deleted the add-open-id-permissions-in-publish-workflow branch December 17, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants