Skip to content

Commit dc30fbe

Browse files
committed
Document Marketplace identity provisioning prerequisites
1 parent ee8fdfc commit dc30fbe

1 file changed

Lines changed: 23 additions & 15 deletions

File tree

‎RELEASING.md‎

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -103,35 +103,42 @@ publishing workflow's permissions.
103103
Graph application permissions. Record its Application (client) ID and
104104
Directory (tenant) ID.
105105
2. In **Certificates & secrets → Federated credentials → Add credential**,
106-
choose **GitHub Actions deploying Azure resources** and enter:
107-
108-
| Field | Value |
109-
| ------------ | -------------------------------------------- |
110-
| Organization | `PyneSys` |
111-
| Repository | `PyneIDE` |
112-
| Entity type | Environment |
113-
| Environment | `marketplace` |
114-
| Name | `pyneide-marketplace` |
115-
| Issuer | `https://token.actions.githubusercontent.com` |
116-
| Subject | `repo:PyneSys/PyneIDE:environment:marketplace` |
117-
| Audience | `api://AzureADTokenExchange` |
106+
choose **Other issuer → Explicit subject identifier** and enter:
107+
108+
| Field | Value |
109+
| -------- | ---------------------------------------------- |
110+
| Name | `pyneide-marketplace` |
111+
| Issuer | `https://token.actions.githubusercontent.com` |
112+
| Subject | `repo:PyneSys/PyneIDE:environment:marketplace` |
113+
| Audience | `api://AzureADTokenExchange` |
114+
115+
These values match this repository's current default OIDC subject. Verify
116+
the repository's subject configuration before recreating the credential:
117+
newer GitHub/Entra setup screens can generate immutable-ID subjects instead.
118118

119119
3. Create the GitHub Actions environment `marketplace`. Allow deployments only
120120
from tags matching `v*`, plus branch `main` for manual verification/retry runs.
121121
To publish automatically after release publication, do not add a second
122122
required reviewer gate here. Add environment **variables** `AZURE_CLIENT_ID`
123123
and `AZURE_TENANT_ID` with the recorded IDs. They identify the app and tenant;
124124
no stored password or PAT is used.
125-
4. Run **Actions → Publish Marketplace → Run workflow** on `main`, enter an
125+
4. Add the application to an Azure DevOps organization connected to the same
126+
Entra tenant, under **Organization settings → Users → Add users**. Select
127+
`PyneIDE Marketplace`, **Stakeholder** access and no project access. This
128+
creates the Azure DevOps profile needed by Marketplace. If creating a
129+
separate technical organization, keep it within the free tier. Without this
130+
step, the profile API can fail with `VSS011031: There is no profile for the
131+
authenticated user in the system` even though Entra sign-in succeeds.
132+
5. Run **Actions → Publish Marketplace → Run workflow** on `main`, enter an
126133
existing published tag, and leave **publish** unchecked. This verifies the
127134
actual release package and signs in through Entra without uploading a version.
128135
The job summary records the Marketplace identity/profile ID. This ID is
129136
distinct from the Entra application ID and object IDs; the workflow obtains
130137
it as the signed-in service principal from the Azure DevOps profile API.
131138
On first setup, the publisher-access check can fail until the next step.
132-
5. Add that identity/profile ID as **Contributor** under
139+
6. Add that identity/profile ID as **Contributor** under
133140
[PyneSys publisher → Members](https://marketplace.visualstudio.com/manage/publishers/pynesys).
134-
6. Rerun the verification with **publish** unchecked. Confirm the publisher-access
141+
7. Rerun the verification with **publish** unchecked. Confirm the publisher-access
135142
check now succeeds before publishing the next GitHub release.
136143

137144
After a transient publication failure, rerun the failed job, or manually dispatch
@@ -142,4 +149,5 @@ upload whose outcome is uncertain.
142149

143150
References: [Microsoft Entra publishing](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#secure-automated-publishing-to-visual-studio-marketplace),
144151
[GitHub federation setup](https://learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation-create-trust#github-actions),
152+
[Azure DevOps application identities](https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/service-principal-managed-identity?view=azure-devops),
145153
[Azure Login without a subscription](https://github.com/Azure/login#login-without-subscription).

0 commit comments

Comments
 (0)