Skip to content

ci(npm-publish): lock OIDC trusted publishing; correct changelog#79

Merged
derek-palmer merged 1 commit into
mainfrom
feat/harden-npmjs-publish
May 29, 2026
Merged

ci(npm-publish): lock OIDC trusted publishing; correct changelog#79
derek-palmer merged 1 commit into
mainfrom
feat/harden-npmjs-publish

Conversation

@derek-palmer
Copy link
Copy Markdown
Owner

Closes #48.

What

The npm-publish workflow already uses OIDC trusted publishing (id-token: write, npm publish --provenance --access public) and tag/version parity. This PR makes that intentional and verifiable:

  • Guard test (test_npm_publish_workflow_uses_oidc_trusted_publishing) — asserts the publish job is tokenless OIDC (id-token: write, --provenance, --access public) and references no NPM_TOKEN/NODE_AUTH_TOKEN, so a regression back to a long-lived token is caught in CI.
  • Changelog correction — the stale NPM_TOKEN guidance in the 0.4.1 notes is corrected forward in the 0.4.5 entry (history left intact); npmjs auth is OIDC, no token required.

npm package-contents validation in release-pr already landed in #52 (scripts/inspect_npm_package.py). Provenance and tag/version parity were already present.

Out of scope

GitHub Packages publish hardening (#47), shim pins, package identity.

🤖 Generated with Claude Code

Add a workflow guard test asserting the npmjs publish job uses tokenless
OIDC trusted publishing (id-token write, --provenance --access public) and
references no NPM_TOKEN/NODE_AUTH_TOKEN, so a regression to long-lived
tokens is caught. Correct the stale 0.4.1 NPM_TOKEN guidance forward in the
0.4.5 changelog. npm package-contents validation in release-pr already
landed in #52.

Closes #48
@derek-palmer derek-palmer merged commit 5b65e78 into main May 29, 2026
10 checks passed
@derek-palmer derek-palmer deleted the feat/harden-npmjs-publish branch May 29, 2026 20:17
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.

Harden npmjs trusted publishing workflow

1 participant