Skip to content

Harden npm publish verification - #11

Merged
BotondCsereklye merged 1 commit into
mainfrom
agent/npm-publish-hardening
Jul 15, 2026
Merged

Harden npm publish verification#11
BotondCsereklye merged 1 commit into
mainfrom
agent/npm-publish-hardening

Conversation

@BotondCsereklye

Copy link
Copy Markdown
Owner

Summary

  • canonicalize the npm CLI binary path used during publication
  • verify publish metadata without lifecycle scripts and retain package-content safeguards
  • handle already-published versions by falling back to an npm pack dry run while keeping auth and 2FA failures fail-closed
  • document npm 2FA and safe publishing practices

Validation

  • npm run prepublishOnly
  • 58 tests passed
  • 90.81% statement coverage and 83.88% branch coverage
  • package verification: 130 files, 68.6 kB
  • Codex Security working-tree scan: 0 findings

@BotondCsereklye
BotondCsereklye merged commit c67e2a9 into main Jul 15, 2026
1 check passed
@BotondCsereklye
BotondCsereklye deleted the agent/npm-publish-hardening branch July 15, 2026 13:40
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