Skip to content

Harden npm release supply chain - #3

Merged
Zk-nd3r merged 1 commit into
mainfrom
agent/keyv-classkill-20260804
Aug 4, 2026
Merged

Harden npm release supply chain#3
Zk-nd3r merged 1 commit into
mainfrom
agent/keyv-classkill-20260804

Conversation

@Zk-nd3r

@Zk-nd3r Zk-nd3r commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Hardens the npm release path against the Keyv/cacheable supply-chain attack class where compromised source and CI can still produce valid npm provenance.

  • pins every GitHub Action to a full commit SHA
  • suppresses dependency lifecycle scripts in CI and release verification
  • adds a fail-closed supply-chain policy and adversarial mutation tests
  • isolates OIDC to one minimal publish job
  • requires an annotated tag reachable from origin/main
  • verifies the fresh publish-job tarball is byte-equivalent to the preflight manifest before registry mutation
  • separates post-publish registry verification from the OIDC job
  • documents that provenance proves build origin, not source benignness

Validation

  • supply-chain policy and YAML/OIDC mutation suite
  • prepublish equality mutation suite
  • 23/23 verifier tests
  • release-gate fixtures
  • browser packed-artifact matrix
  • npm audit signatures
  • npm audit: 0 vulnerabilities
  • YAML parse and clean diff checks

Release boundary

Publication remains held. This PR does not create or move a tag and does not publish npm. A future release remains blocked until npm stage-only trusted publishing, package-level disallow-token/2FA controls, and independent main/tag protections are verified. Existing v0.2.1 is unchanged.

@Zk-nd3r
Zk-nd3r marked this pull request as ready for review August 4, 2026 18:05
@Zk-nd3r
Zk-nd3r merged commit 3c05e5e into main Aug 4, 2026
4 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.

1 participant