Repository navigation
Log the OIDC exchange on the publish step - #11
Merged
Merged
Conversation
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.
Log the OIDC exchange on the publish step
Part of EPIC-4426 Sent Voice.
Root cause
The three 0.2.0 release runs failed with a bare
ENEEDAUTH. npm logs the result of its OIDC token exchange at verbose level only, so the default log showed nothing about why no token was obtained. With verbose logs the registry's answer was visible at once:which is npm's message when no trusted publisher on the package matches the workflow. After the trusted publishers were corrected, the same branch published all three packages:
Changes
NPM_CONFIG_LOGLEVEL: verboseon the publish step, so every publish run shows the exchange request, its status and the registry's message.Verification
Run 39982000492 from this branch published
@sentdm/voice-client-core,@sentdm/voice-clientand@sentdm/voice-client-react0.2.0 through the trusted publisher, each with_npmUserGitHub Actions and an attestation.🤖 Generated with Claude Code