Drop access token in favor of OICD to authenticate against npm (#685)#686
Merged
bedrich-schindler merged 1 commit intomasterfrom Dec 23, 2025
Merged
Drop access token in favor of OICD to authenticate against npm (#685)#686bedrich-schindler merged 1 commit intomasterfrom
bedrich-schindler merged 1 commit intomasterfrom
Conversation
This requires to add thrust published on npmjs.com before running `publish_package_to_npm` job. `NPM_PUBLISH_TOKEN` secret can be then removed from repository settings.
There was a problem hiding this comment.
Pull request overview
This PR transitions npm publishing authentication from using a secret access token (NPM_PUBLISH_TOKEN) to OpenID Connect (OIDC) for more secure authentication. This change requires configuring trust between the GitHub Actions workflow and npmjs.com before running the publish job.
Key changes:
- Added workflow-level permissions for OIDC (
id-token: writeandcontents: read) - Removed the
NODE_AUTH_TOKENenvironment variable and its reference toNPM_PUBLISH_TOKENsecret from the npm publish step
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Author
adamkudrna
approved these changes
Dec 22, 2025
mbohal
approved these changes
Dec 23, 2025
Contributor
Author
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This requires to add thrust published on npmjs.com before running
publish_package_to_npmjob.NPM_PUBLISH_TOKENsecret can be then removed from repository settings.Closes #685