Skip to content

ci(release): warn when an npm publish falls back to the token - #160

Merged
taraxvoid merged 2 commits into
mainfrom
worktree-npm-trust-downgrade
Oct 15, 2026
Merged

taraxvoid merged 2 commits into
mainfrom
worktree-npm-trust-downgrade

Conversation

@taraxvoid

Copy link
Copy Markdown
Owner

npmx.dev shows a "trust downgrade" for voidflow after 0.8.1. The token fallback was blamed on npm/cli#9969 (immutable OIDC subjects), but the publish logs say otherwise:

  • @taraxvoid/voidflow has been trusted-published on every release, 0.13.0 included (_npmUser is GitHub Actions <npm-oidc-no-reply@github.com>), with this repo's immutable subject.
  • The unscoped voidflow mirror's exchange fails in the same job: POST .../oidc/token/exchange/package/voidflow 404, package not found. npm then falls back to NPM_TOKEN. 0.8.1 was the last unscoped version that exchanged.

So the fix is the trusted publisher entry for voidflow on npmjs.com (repo taraxvoid/voidflow, workflow release-please.yml, environment npm), not anything in this workflow.

This PR:

  • Corrects the workflow comments.
  • Adds a step after publishing that emits a ::warning:: when either package's publisher is not the GitHub OIDC identity. It only warns, because the version is already published either way.

🤖 Generated with Claude Code

taraxvoid and others added 2 commits October 12, 2026 12:32
npmx.dev flags voidflow as a "trust downgrade" after 0.8.1. The scoped
package has been trusted-published on every release despite the immutable
OIDC subject; only the unscoped mirror's exchange fails, with "404 package
not found", so its trusted publisher entry on npmjs.com is the problem, not
npm/cli#9969. Correct the comments and add a step that warns when either
package's publisher is not npm-oidc-no-reply@github.com.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@taraxvoid

Copy link
Copy Markdown
Owner Author

Tracked in #172 (trust entry fix, dropping NPM_TOKEN, then staged publish). Rechecked the registry on 2026-10-14: the scoped package was OIDC on every version, the mirror only at 0.8.1.

@taraxvoid
taraxvoid merged commit 3237202 into main Oct 15, 2026
2 checks passed
@taraxvoid
taraxvoid deleted the worktree-npm-trust-downgrade branch October 15, 2026 03:37
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