Skip to content

Harden npm package release supply chain - #372

Merged
ty-everett merged 4 commits into
mainfrom
codex/npm-artifact-supply-chain
Jul 27, 2026
Merged

Harden npm package release supply chain#372
ty-everett merged 4 commits into
mainfrom
codex/npm-artifact-supply-chain

Conversation

@ty-everett

Copy link
Copy Markdown
Collaborator

Summary

  • split npm releases into an uncredentialed prepare boundary, a protected exact-artifact publish boundary, and a separately credentialed version-sync job
  • stage each unpublished governed package once, verify its immutable tarball digests and Open BSV v6 payload, and publish those exact bytes in dependency order
  • generate per-package and aggregate CycloneDX 1.5 SBOMs, enforce a complete production-license inventory, gate high/critical Trivy findings, attest and verify SLSA/CycloneDX evidence, and retain offline bundles
  • use npm trusted publishing/OIDC provenance without long-lived npm tokens and verify registry bytes after publication
  • add CI dry-run coverage, machine-readable policy, recovery/consumer verification documentation, and repository-health regression tests

Tracks #324 (Wave 6 npm package-artifact supply-chain hardening).

Validation

  • pnpm build
  • pnpm typecheck
  • pnpm lint
  • pnpm format:check
  • pnpm audit:security
  • pnpm health:check
  • checksum-verified actionlint 1.7.12 on ci.yml and release.yaml
  • all 30 public packages staged and verified: 30 tarballs, 30 package SBOMs, 330 aggregate components, no license-policy findings
  • Trivy 0.70.0 aggregate SBOM scan: 0 HIGH/CRITICAL vulnerabilities
  • exact SDK tarball npm publish --dry-run --force: pass
  • real npm selection: 30 current versions queried, 0 unpublished, no publication performed

This PR does not change package versions, create a release tag, trigger the release workflow, or publish to npm.

@ty-everett
ty-everett requested a review from sirdeggen as a code owner July 27, 2026 17:53
Comment thread scripts/package-release-artifacts.mjs Fixed
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ty-everett
ty-everett merged commit 59d0234 into main Jul 27, 2026
65 checks passed
@ty-everett
ty-everett deleted the codex/npm-artifact-supply-chain branch July 27, 2026 18:15
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