Skip to content

Conversation

@bedrich-schindler
Copy link
Contributor

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.


Closes #685

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.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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: write and contents: read)
  • Removed the NODE_AUTH_TOKEN environment variable and its reference to NPM_PUBLISH_TOKEN secret from the npm publish step

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bedrich-schindler
Copy link
Contributor Author

image

I already set Trusted Provider ...

@bedrich-schindler bedrich-schindler merged commit fce2ee6 into master Dec 23, 2025
18 checks passed
@bedrich-schindler bedrich-schindler deleted the maintenance/685 branch December 23, 2025 11:00
@bedrich-schindler
Copy link
Contributor Author

NPM_PUBLISH_TOKEN removed from settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate npm publishing from access tokens to OICD

4 participants