Skip to content

Drop setup-node registry-url so npm uses OIDC - #3

Merged
cprice70 merged 2 commits into
mainfrom
users/cprice/oidc-no-placeholder-token
Oct 13, 2026
Merged

cprice70 merged 2 commits into
mainfrom
users/cprice/oidc-no-placeholder-token

Conversation

@cprice70

Copy link
Copy Markdown
Owner

The retagged v2.0.0 release run (38189878074) failed with 404 on publish. Its log shows NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX, the placeholder setup-node writes when registry-url is set, and the publish notice has no provenance line, so npm never attempted the OIDC exchange. Removing registry-url stops the placeholder .npmrc from being written; npm 12 on the runner then uses trusted publishing on its own. No other change.

With registry-url set, setup-node writes an .npmrc that reads a
placeholder NODE_AUTH_TOKEN, and npm publish authenticates with that
placeholder instead of exchanging the GitHub OIDC token. The v2.0.0
release run failed with 404 and no provenance for that reason.
@cprice70
cprice70 merged commit 3c1acae into main Oct 13, 2026
2 checks passed
@cprice70
cprice70 deleted the users/cprice/oidc-no-placeholder-token branch October 13, 2026 23:16
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