Summary
Migrate npm publishing from long-lived NPM_TOKEN to OIDC Trusted Publishing for enhanced security.
Background
The Shai-Hulud worm attack (2025) compromised 1,150+ npm packages by stealing NPM_TOKEN secrets. npm's response: OIDC Trusted Publishing (GA July 2025) eliminates long-lived tokens entirely.
Tasks
Security Improvements
| Before |
After |
| Long-lived NPM_TOKEN |
Short-lived OIDC tokens (15 min) |
| Token stored in secrets |
No secrets needed |
| Manual provenance |
Automatic provenance attestations |
Reference
Summary
Migrate npm publishing from long-lived
NPM_TOKENto OIDC Trusted Publishing for enhanced security.Background
The Shai-Hulud worm attack (2025) compromised 1,150+ npm packages by stealing
NPM_TOKENsecrets. npm's response: OIDC Trusted Publishing (GA July 2025) eliminates long-lived tokens entirely.Tasks
laststance,create-react-app-vite,release.yml@laststance/create-react-app.github/workflows/release.ymlid-token: writepermission--ignore-scriptsto installNPM_TOKENusage.release-it.json"skipChecks": truefor OIDC compatibilitySecurity Improvements
Reference