Skip to content

Publish npm releases with OIDC provenance - #4

Open
andife wants to merge 1 commit into
icydotdev:mainfrom
andife:harden/npm-release-provenance
Open

andife wants to merge 1 commit into
icydotdev:mainfrom
andife:harden/npm-release-provenance

Conversation

@andife

@andife andife commented Nov 29, 2026

Copy link
Copy Markdown

Summary

  • publish GitHub releases through an npm trusted publisher instead of a long-lived token
  • use least-privilege contents: read and id-token: write permissions
  • verify release tags match the package version
  • test and inspect the package before publishing
  • generate and retain a CycloneDX SBOM
  • fix the clean-release ordering so the client is built before watch.test.ts runs
  • pin every referenced action to a reviewed commit SHA

Validation

A Node 24 container completed the workflow through:

  • locked install without dependency lifecycle scripts
  • typecheck, build, and 26 passing tests
  • npm pack --dry-run
  • CycloneDX SBOM generation

No package was published during validation.

Required after merge

  1. Create a protected GitHub environment named npm.
  2. Configure the npm package trusted publisher for icydotdev/codecity, workflow publish.yml, environment npm.
  3. Allow npm publish, verify the first release, then disallow traditional publishing tokens and require 2FA.

@vercel

vercel Bot commented Nov 29, 2026

Copy link
Copy Markdown

@andife is attempting to deploy a commit to the icydev's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

1 participant