Skip to content

Harden npm trusted publishing workflow#18

Merged
kentcdodds merged 8 commits into
epicweb-dev:mainfrom
kody-bot:cursor/harden-npm-release-d34b
May 13, 2026
Merged

Harden npm trusted publishing workflow#18
kentcdodds merged 8 commits into
epicweb-dev:mainfrom
kody-bot:cursor/harden-npm-release-d34b

Conversation

@kody-bot
Copy link
Copy Markdown
Contributor

@kody-bot kody-bot commented May 12, 2026

Summary

  • move npm OIDC/id-token permission out of dependency install/build jobs
  • build package artifacts in an unprivileged job
  • publish from the generated artifact with package-manager caching disabled
  • set npm publish to ignore lifecycle scripts in the publish-authorized job
  • pin release-path actions to commit SHAs

Context

Triggered by the TanStack npm supply-chain compromise postmortem: https://tanstack.com/blog/npm-supply-chain-compromise-postmortem

Testing

  • workflow syntax checked by construction against the existing workflow shape

@kody-bot kody-bot marked this pull request as ready for review May 12, 2026 18:41
@kentcdodds kentcdodds merged commit 72d6dcc into epicweb-dev:main May 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants