Repository navigation
Description
Context
Azure DevOps is retiring global personal access tokens (PATs) on December 1, 2026. These are the tokens created with Organization: All accessible organizations, as described in the existing VS Code extension publishing instructions. Publishers who use a global PAT need to replace it to continue publishing.
Important: An organization-scoped PAT can serve as a temporary workaround. PAT-based publishing is not the recommended long-term approach. This issue records the workaround separately from the publishing docs, in line with Lynn Dai's guidance.
Temporary workaround
-
Sign in to the Azure DevOps portal with the same Microsoft account that has publishing access to your Marketplace publisher.
-
Select any Azure DevOps organization you belong to. If you do not belong to one, create an organization.
Marketplace publishers are not linked to Azure DevOps organizations. The organization is needed to create the PAT; it does not need to correspond to your Marketplace publisher. Marketplace authorizes the account that owns the token, so that account must have access to publish for your publisher.
-
Open User settings > Personal access tokens, then select New Token.
-
Configure the token:
- Name: enter a descriptive name.
- Organization: select a specific organization you belong to, not All accessible organizations.
- Expiration: choose an appropriate expiration date.
- Scopes: select Custom defined, then Show all scopes. Under Marketplace, select Manage.
-
Select Create and store the token securely. Do not share it in this issue or commit it to source control.
-
Verify access without publishing an extension:
npx @vscode/vsce verify-pat <publisher-id> -p <PAT>
Replace
<publisher-id>with your Marketplace publisher ID and<PAT>with the new organization-scoped token.Security caution: Passing a token on the command line can expose it in shell history or process arguments. Run this only in a trusted environment and do not share terminal output containing credentials.
-
Use the new token in place of the global PAT in your existing publishing workflow. For an interactive workflow, run
vsce login <publisher-id>and enter the new token when prompted. For automation, update the stored publishing secret.
If verification returns 401 Unauthorized or 403 Forbidden, check that the PAT has Marketplace > Manage scope and that the account that created it has publishing access to the specified publisher.
Long-term direction
Trusted Publishing enables publishing without a PAT and is the intended long-term direction. See the documentation work in #10517 and follow the published guidance once it is available. This issue does not promise a release date or continued long-term support for PAT-based publishing.
Related discussion:
- Support publishing extensions with organization-scoped PATs due to global PATs being retired vsmarketplace#2121: global PAT retirement and extension publishing.
- Use organization-scoped PAT for publishing extensions #10519: proposed organization-scoped PAT instructions and the decision to keep this temporary workaround out of the docs.
Activity