Repository navigation
Conversation
…an't fall back to a placeholder token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The 0.2.0 publish (run 43247481012) failed with
E404 Not Found - PUT https://registry.npmjs.org/@cleanlist-ai%2fcli. The package and the@cleanlist-aiscope both exist (0.1.0 was published bycleanlist-ai), so the 404 is an auth failure, not a missing package.The real cause is on npmjs.com, not in this repo: no Trusted Publisher is configured for
@cleanlist-ai/cli. The workflow already uses OIDC (id-token: write, npm 11, noNPM_TOKEN), but npm only accepts the OIDC token once that link exists. When the exchange fails, npm quietly falls back to the.npmrcthatsetup-nodewrites because ofregistry-url. That file usesNODE_AUTH_TOKEN, which is setup-node's placeholderXXXXX-XXXXX-XXXXX-XXXXX(visible in the log). npm then PUTs with a fake token and gets the misleading 404, plus the "tokens that bypass 2FA" notice.What
registry-urlfromsetup-nodein the publish job. OIDC doesn't need it, because npm's default registry is already registry.npmjs.org. A missing or mismatched Trusted Publisher now fails withENEEDAUTHrather than a 404. It also removes thealways-authwarnings.This doesn't fix the 0.2.0 publish by itself. That needs the Trusted Publisher configured on npmjs.com (package Settings, then Trusted Publisher, then GitHub Actions:
Cleanlist-ai/cleanlist-cli/release.yml, environment blank). After that, re-run the failedpublishjob of run 43247481012.A
ci:commit doesn't trigger a release, so merging this won't publish anything.