Skip to content

[ENG-1337] Use OIDC to connect to NPM#30

Merged
KofoworolaOgunleye merged 1 commit into
mainfrom
ENG-1337-use-oidc-to-connect-to-npm
Oct 13, 2025
Merged

[ENG-1337] Use OIDC to connect to NPM#30
KofoworolaOgunleye merged 1 commit into
mainfrom
ENG-1337-use-oidc-to-connect-to-npm

Conversation

@KofoworolaOgunleye

Copy link
Copy Markdown
Contributor

Description

  • This approach eliminates the security risks associated with long-lived write tokens, which can be compromised, accidentally exposed in logs, or require manual rotation. Instead, each publish uses short-lived, cryptographically-signed tokens that are specific to the workflow and cannot be extracted or reused.

  • This removes the existing long-lived NPM_TOKEN and adds id-token: write permission, which allows GitHub Actions to generate OIDC tokens

Issue(s)

ENG-1337

How to test

Checklist

  • Added or updated tests where appropriate

This approach eliminates the security risks associated with long-lived write tokens, which can be compromised, accidentally exposed in logs, or require manual rotation. Instead, each publish uses short-lived, cryptographically-signed tokens that are specific to the workflow and cannot be extracted or reused.

this also adds id-token: write permission, which allows GitHub Actions to generate OIDC tokens
@notion-workspace

Copy link
Copy Markdown

@KofoworolaOgunleye KofoworolaOgunleye merged commit a89d1a4 into main Oct 13, 2025
2 of 4 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants