Skip to content

Add OpenID permissions in publish workflow#297

Merged
Zgjim Haziri (ZgjimHaziri) merged 1 commit into
masterfrom
add-open-id-permissions-in-publish-workflow
Dec 17, 2025
Merged

Add OpenID permissions in publish workflow#297
Zgjim Haziri (ZgjimHaziri) merged 1 commit into
masterfrom
add-open-id-permissions-in-publish-workflow

Conversation

@ZgjimHaziri
Copy link
Copy Markdown
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 Zgjim Haziri (ZgjimHaziri) requested a review from a team as a code owner December 17, 2025 14:13
@sonarqubecloud
Copy link
Copy Markdown

@ZgjimHaziri Zgjim Haziri (ZgjimHaziri) merged commit 05c11c4 into master Dec 17, 2025
5 checks passed
@ZgjimHaziri Zgjim Haziri (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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants