Skip to content

Look up the VS Code publisher member ID in a way that works for an app - #46

Merged
Murraylr merged 1 commit into
mainfrom
claude/beautiful-goldberg-s0lif0
Oct 7, 2026
Merged

Murraylr merged 1 commit into
mainfrom
claude/beautiful-goldberg-s0lif0

Conversation

@Murraylr

@Murraylr Murraylr commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

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 the stringutilitybelt publisher, it prints the member ID to add. That's step 4 of the VS Code setup in RELEASING.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 answers VSS011031: There is no profile for the authenticated user in the system. The first real run (release run 8) did exactly that, and printed Add 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.md now 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:

  1. Add the printed ID on the publisher's page (Members → Add, role Contributor).
  2. Re-run the failed vscode job.

The browser extension still waits for a manual release (1.4.2).

How it was tested

  • actionlint passes on the workflow.
  • Not run end to end: it needs the Entra ID app's sign-in, which only the release job has. The Azure sign-in itself already succeeds there (run 8). The next release run exercises the lookup.
  • npm run release -- plan on this branch: only vscode releases, retrying 1.3.3.

Checklist

  • npm test, npm run typecheck and npm run lint pass: n/a, workflow and docs only (actionlint passes; CI runs the rest)
  • New utilities have index.test.ts, guide.md (npm run check:guides -- <id>) and regenerated _generated/ files (npm run gen): n/a
  • User-visible changes are noted under ## [Unreleased] in CHANGELOG.md: n/a (release tooling)
  • Labelled release:minor (new features) or release:major (breaking changes) if a patch release isn't right: not needed
  • If the change affects what data leaves the browser, the privacy policy is updated: n/a

🤖 Generated with Claude Code

https://claude.ai/code/session_01WnuvVWAw3JVLjD8xRduLfK


Generated by Claude Code

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
@Murraylr
Murraylr requested a review from a team October 7, 2026 22:42
@Murraylr
Murraylr merged commit 4c29bcd into main Oct 7, 2026
7 checks passed
@Murraylr
Murraylr deleted the claude/beautiful-goldberg-s0lif0 branch October 7, 2026 22:45
@Murraylr Murraylr mentioned this pull request Oct 8, 2026
5 tasks done
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.

2 participants