Repository navigation
Look up the Marketplace member ID through connectionData - #3
Merged
Merged
Conversation
profiles/me answers "VSS011031: There is no profile for the authenticated user" for a managed identity, which never has an Azure DevOps profile. The identity ID the publisher's Members page takes is authenticatedUser.id from connectionData, which works for any signed-in identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 first manual run of VS Code extension with
show_marketplace_identityfailed at the lookup step (run 38419135682):The Azure sign-in itself worked, which confirms the federated credential, the environment and the repository variables. The failing piece is
profiles/me: a managed identity never has an Azure DevOps profile, so that endpoint has nothing to return.What changes
The lookup now calls
https://app.vssps.visualstudio.com/_apis/connectionDataand readsauthenticatedUser.id, which exists for any signed-in identity. That ID is what the publisher's Members page takes. Another project hit the same error and made the same change: String-Utility-Belt/string-utility-belt#46.If the call returns no ID, the step now fails with a clear message instead of printing an empty one.
Testing
actionlintreports nothing. The job only runs onmain(environment rule), so the real check is running it again after merging.🤖 Generated with Claude Code