Repository navigation
Look up the VS Code publisher member ID in a way that works for an app - #46
Merged
Merged
Conversation
The Check Marketplace access step names the identity to add to the publisher, but read it from profiles/me, which answers VSS011031 for a service principal: an app has no Azure DevOps profile. So the first real run printed "member ID (unknown)". connectionData returns the authenticated identity's ID for an app too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WnuvVWAw3JVLjD8xRduLfK
5 tasks done
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.
What and why
The vscode release job signs in to Azure DevOps as an Entra ID app. Its Check Marketplace access step runs
vsce verify-pat, and while the app isn't yet a member of thestringutilitybeltpublisher, it prints the member ID to add. That's step 4 of the VS Code setup inRELEASING.md.It looked the ID up with
profiles/me, which never works for an app: a service principal has no Azure DevOps profile, so the call answersVSS011031: There is no profile for the authenticated user in the system. The first real run (release run 8) did exactly that, and printedAdd member ID (unknown), leaving no way to finish the setup.The step now reads the ID from
https://app.vssps.visualstudio.com/_apis/connectionData(authenticatedUser.id), which works for an app as well. asbis/ShapeItUp#8 uses the same call for the same reason.RELEASING.mdnow says the ID is the app's Azure DevOps identity, not its client ID.Label: none. It only changes the release workflow and docs. Merging it retries the vscode release at 1.3.3, its version set by the last release commit and never published. The job will then print the real member ID.
After merging:
The browser extension still waits for a manual release (1.4.2).
How it was tested
npm run release -- planon this branch: only vscode releases, retrying 1.3.3.Checklist
npm test,npm run typecheckandnpm run lintpass: n/a, workflow and docs only (actionlint passes; CI runs the rest)index.test.ts,guide.md(npm run check:guides -- <id>) and regenerated_generated/files (npm run gen): n/a## [Unreleased]inCHANGELOG.md: n/a (release tooling)release:minor(new features) orrelease:major(breaking changes) if a patch release isn't right: not needed🤖 Generated with Claude Code
https://claude.ai/code/session_01WnuvVWAw3JVLjD8xRduLfK
Generated by Claude Code