-
Notifications
You must be signed in to change notification settings - Fork 6
ci(publish): use npm OIDC #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a4c8e56 to
5afee37
Compare
florian-sanders-cc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh well, I didn't think it was that straightforward, great job, thanks for that 🙌
Galimede
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for handling this, I didn't think it was that simple. 🤯
hsablonniere
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, same here, I didn't expect something that simple, so nice. Looking forward to use it on our other projects 👏
Migrate npm publishing to use OIDC-based trusted publishing instead of static tokens, as npm classic tokens will be permanently revoked on November 19, 2025. Changes: - Add top-level OIDC permissions (id-token: write, contents: read) - Add job-level OIDC permissions to publish-npm job - Remove NPM_TOKEN secret usage and NODE_AUTH_TOKEN environment variable - Add --provenance flag to npm publish for package transparency Reference: https://docs.npmjs.com/trusted-publishers/ Implementation based on: CleverCloud/clever-client.js#176 Closes #991
4767b37 to
4c637f0
Compare
4c637f0 to
1c62b5b
Compare
What this PR do?
This PR uses the new mechanism introduced by NPM for secured publishing: https://docs.npmjs.com/trusted-publishers
How to review