From cc7589da05e683452dd3d4e2c6974252ff4674b6 Mon Sep 17 00:00:00 2001 From: Curtis Wensley Date: Fri, 16 Oct 2026 21:09:27 -0700 Subject: [PATCH] Show the Marketplace identity for app sign-ins profiles/me fails for service principals with "no profile for the authenticated user". Co-Authored-By: Claude Opus 5.5 --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 81153d5..d3e484d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,8 +33,9 @@ jobs: - name: Show the identity to add to the publisher run: | - az rest -u https://app.vssps.visualstudio.com/_apis/profile/profiles/me --resource "$MARKETPLACE_RESOURCE" \ - --query "{id: id, name: displayName}" + # profiles/me only works for user accounts, not app identities + az rest -u https://app.vssps.visualstudio.com/_apis/connectionData --resource "$MARKETPLACE_RESOURCE" \ + --query "{id: authenticatedUser.id, name: authenticatedUser.providerDisplayName}" visual-studio: if: github.event_name == 'release'