Skip to content

Use organization-scoped PAT for publishing extensions - #10519

Closed
Trivikram Kamat (trivikr) wants to merge 2 commits into
microsoft:mainfrom
trivikr:publishing-extension-pat-scope
Closed

Trivikram Kamat (trivikr) wants to merge 2 commits into
microsoft:mainfrom
trivikr:publishing-extension-pat-scope

Conversation

@trivikr

Copy link
Copy Markdown

Refs: microsoft/vsmarketplace#2121

The "Get a Personal Access Token" steps tell publishers to create a PAT for All accessible organizations, which is a global PAT. Global PATs are retired on December 1, 2026, and publishing works with a PAT scoped to a single organization.

Changes

  • Create token step: select your Azure DevOps organization instead of All accessible organizations, and update create-token.png to match.
  • 403/401 FAQ: remove the advice that selecting a specific organization causes publishing errors.
  • IMPORTANT notes: clarify that organization-scoped PATs continue to work, while still recommending Microsoft Entra ID.

Global PATs in Azure DevOps are retired on December 1, 2026, and
publishing works with a PAT scoped to a single organization.

- Select a specific organization instead of "All accessible
  organizations" when creating the PAT, and update the screenshot
- Remove the FAQ advice that picking a specific organization causes
  403/401 errors
- Clarify in the IMPORTANT notes that organization-scoped PATs keep
  working, while still recommending Entra ID
@trivikr
Trivikram Kamat (trivikr) force-pushed the publishing-extension-pat-scope branch from 9ba2bc1 to 8bc2c2a Compare October 21, 2026 04:24
@trivikr

Trivikram Kamat (trivikr) commented Oct 21, 2026 •

Copy link
Copy Markdown
Author

cc: Nick Trogh (@ntrogh)

@ntrogh Nick Trogh (ntrogh) added the doc-enhancement suggested addition or improvement label Oct 21, 2026
@ntrogh

Nick Trogh (ntrogh) commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

lyndaidaii Can you review this PR and verify that it's ok to publish while your related PR (#10517) is still in progress? LGTM!

Trivikram Kamat (@trivikr) Waiting to merge until approval from lyndaidaii. Appreciate the contribution 🙏

@flying-sheep

Philipp A. (flying-sheep) commented Oct 21, 2026 •

Copy link
Copy Markdown

Sorry, I don’t get it: I’m part of an organization, but extensions aren’t: marketplace publishers are independent of organizations.

So am I supposed to just select any random organization I happen to be part of to create the token?

It’s probably not super important if trusted publishing becomes available this or next month, but it would be good to clear this up before merging.

@trivikr

Copy link
Copy Markdown
Author

marketplace publishers are independent of organizations.

Marketplace publishers aren't linked to Azure DevOps organizations. A publisher has no organization setting, and the Marketplace authorizes the Microsoft account that owns the PAT, which must be a publisher member. Azure DevOps just requires the PAT to be created in some organization, so you can pick any organization you belong to. I updated the docs to say this in 27feb0b.

I tested with a PAT scoped to the organization that our publisher account belongs to. Could you check with one of yours? npx @vscode/vsce verify-pat <publisher-id> -p <PAT> verifies access without publishing.

@flying-sheep

Copy link
Copy Markdown

Azure DevOps just requires the PAT to be created in some organization, so you can pick any organization you belong to. I updated the docs to say this in 27feb0b.

Thanks, yeah! Important to mention as it makes no logical sense haha!

@lyndaidaii

lyndaidaii commented Oct 21, 2026 •

Copy link
Copy Markdown

Trivikram Kamat (@trivikr), Thank you for suggesting the documentation update and for helping other extension authors navigate this.

An organization-scoped PAT can serve as a temporary workaround, but we’d prefer not to add it to the VS Code publishing docs, as it isn’t the approach we recommend long term. Eventually, we are going to deprecate PAT at all with trusted publishing.

We’re preparing to release Trusted Publishing, which enables publishing without a PAT, and are currently targeting next week, subject to change. We’re also working on the corresponding documentation updates, so we’d suggest pointing authors to that guidance once it’s available.

We really appreciate your help improving the publishing experience!

@trivikr

Copy link
Copy Markdown
Author

Nick Trogh (@ntrogh) Thank you for your approval. I've requested reapproval since the changes were amended above

Waiting to merge until approval from lyndaidaii

I believe this should go out resolve microsoft/vsmarketplace#2121 which users have been waiting since June. The trusted publishing update in #10517 can follow once it's available in stable version of @vscode/vsce and in Marketplace backend.

But the maintainers working on this would be the right ones to provide an answer. cc lyndaidaii

@trivikr

Trivikram Kamat (trivikr) commented Oct 21, 2026 •

Copy link
Copy Markdown
Author

We’re preparing to release Trusted Publishing, which enables publishing without a PAT, and are currently targeting next week, subject to change

Thank you, lyndaidaii, for the clarification and timeline.

Closing this PR, as it'll be superseded by #10517 when trusted publishing is available in client and server.

@lyndaidaii

Copy link
Copy Markdown

Trivikram Kamat (@trivikr), Thank you again for the time and effort you’ve put into this, and for helping improve the experience for other extension authors.
We really appreciate your help and patience as we get this ready!

@ntrogh

Copy link
Copy Markdown
Collaborator

Trivikram Kamat (@trivikr) Added an issue to describe the workaround and pinned it in Issues list: #10526

Appreciate the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-enhancement suggested addition or improvement don't merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants