Skip to content

Support trusted publishing #1275

Open
Open

Description

Package registries such as npm and PyPI support trusted publishers.

Given recent attacks on package registries, as well as the VSCode marketplace, I believe it would be a good idea for vsce to support this as well.

Also npm added staged publishing today. I believe it’s a good idea for the VSCode marketplace to have this as well.

Activity

  1. cooronx commented on Aug 10, 2026

    @cooronx

    when will trust publishing(oidc) be ready on release? it seems PAT are retired on December 1, 2026. may be need some time to change it to oidc

  2. benibenj commented on Aug 10, 2026

    @benibenj
    Contributor

    when will trust publishing(oidc) be ready on release? it seems PAT are retired on December 1, 2026. may be need some time to change it to oidc

    cooronx I don't have the exact timeline, but it should be available soon. Possibly around September

  3. shyim commented on Aug 20, 2026

    @shyim

    Could we get than also an GitHub Action which publishes those? The DX of publishing plugins is the worse I see of all platforms so far 😭

  4. trivikr commented on Sep 24, 2026

    @trivikr

    I don't have the exact timeline, but it should be available soon. Possibly around September

    Is there an update on when trusted publishing will be available on VSCode Marketplace?

    Open VSX had added support for truested publishing on Sept 10th in [email protected]

  5. BenjaminBrienen commented on Oct 2, 2026

    @BenjaminBrienen

    The README documents --oidc (which is not --trusted-publishing for some reason) and says to configure it on the Visual Studio Marketplace, but there doesn't seem to be anywhere to configure it. Where is the page??? Benjamin Christopher Simmonds (@benibenj)

  6. trivikr commented on Oct 5, 2026

    @trivikr

    I just enabled trusted publishing on Open VSX by visiting Settings → Trusted Publishers and choosing GitHub as a provider.
    Their wiki was easy to follow https://github.com/eclipse-openvsx/openvsx/wiki/Trusted-Publishing#register-a-trusted-publisher

    Is there an equivalent one for Visual Studio Code Marketplace?

  7. benibenj commented on Oct 5, 2026

    @benibenj
    Contributor

    Benjamin Brienen (@BenjaminBrienen) --oidc is not yet fully supported by the marketplace backend. It will be soon. Sorry for the confusion, I should not have added it to the read me already.

  8. trivikr commented on Oct 8, 2026

    @trivikr

    is not yet fully supported by the marketplace backend

    Benjamin Christopher Simmonds (@benibenj) thanks for clarifying. What changes are planned for the backend?
    POST /_apis/gallery/token still returns TrustedPublishingNotSupportedException today.

    Some suggestions, based on the Open VSX implementation:

    • Settings page: a "Trusted publishers" page on the publisher management screen, scoped to one extension.
    • Azure Pipelines support: accept Azure Pipelines' OIDC tokens directly. Other services already do this; for example, Databricks federates with ADO pipeline tokens without any Azure resources. Today the documented flow needs an Azure subscription, a managed identity, a federated credential, and an az rest lookup.
    • Immutable IDs: at registration, resolve the repo, org, project, and pipeline names to IDs and match on those, so a renamed or re-created repo can't take over.
    • Branch and approval checks: let a registration pin a GitHub environment or an ADO service connection, so existing branch protection and approval checks apply.
    • Scoped tokens: issue tokens that expire in minutes, can publish only that one extension, and show the version as published by trusted publishing.
    • Both ADO issuers: support vstoken.dev.azure.com and the Entra issuer, since the former retires July 1, 2027.

    Is there a rough timeline? Global PATs are decommissioned on Dec 1, 2026.

  9. BenjaminBrienen commented on Oct 8, 2026

    @BenjaminBrienen

    Cutting it very close 😬

    Hopefully the global PAT deadline is postponed a couple years.

  10. trivikr commented on Oct 12, 2026

    @trivikr

    Benjamin Christopher Simmonds (@benibenj) Sandeep Somavarapu (@sandy081) following up on my earlier comment.

    With global PATs decommissioned on Dec 1, 2026, publishers need time to migrate their pipelines. Could you share:

    1. Is trusted publishing (--oidc) expected to be supported by the Marketplace backend before Dec 1?
    2. If not, will the global PAT deadline be extended for Marketplace publishing?
    3. Until then, is the Microsoft Entra ID flow the recommended migration path?

    If the Entra ID flow is the only option after Dec 1, every publisher who automates publishing will need an Azure subscription to host the managed identity. Even if usage costs nothing, that means setting up a billing account, usually with a credit card. That's a real barrier for open source and hobbyist authors. Open VSX, npm, and PyPI support trusted publishing without requiring a paid cloud account.

    Even a rough estimate would help us plan. Thanks.

  11. trivikr commented on Oct 12, 2026

    @trivikr

    FYI for those following: lyndaidaii from the Marketplace team confirmed in microsoft/vsmarketplace#2121 that they're working on trusted publishing from GitHub Actions, configured on marketplace.visualstudio.com, with no Azure DevOps PAT.

    I've asked there for a timeline and whether the PAT deadline will be extended.

  12. trivikr commented on Oct 21, 2026

    @trivikr

    As per comment in related PR, maintainers are trying to make trusted publishing available on VS Code Marketplace by Fri, Oct 30th

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

    microsoft/vscode-docs#10519 (comment)

  13. benibenj commented on Oct 28, 2026

    @benibenj
    Contributor

    It will be announced today

  14. lyndaidaii commented on Oct 28, 2026

    @lyndaidaii

    It is available in latest stable version vsce, here is blog post. https://devblogs.microsoft.com/blog/trusted-publishing-visual-studio-marketplace/, Please let me know if any feedback with this new feature.

  15. lyndaidaii commented on Oct 28, 2026

    @lyndaidaii

    Remco Haszing (@remcohaszing), We’re working on staged publishing for Visual Studio Marketplace and will share more details as they become available. maybe open a separate issue for staged publishing. Thanks.

  16. cevheri commented on Oct 30, 2026

    @cevheri

    Confirming trusted publishing works end to end from GitHub Actions with a GitHub environment, using @vscode/vsce 4.1.0.

    Setup: the policy on the publisher names the owner, repo, workflow file and the environment vscode-marketplace, which has required reviewers and accepts only release tags. The publish job has id-token: write, runs in that environment, and calls vsce publish --oidc --packagePath <vsix> on the VSIX the earlier gates tested. No Marketplace secret is stored. The workflow change is libredb/libredb-studio#1919.

    Run: https://github.com/libredb/libredb-studio/actions/runs/41137115534 (published libredb.libredb-studio 0.4.1). The policy page shows it as used by that run.

    Thanks for shipping this before the PAT deadline.

  17. DanTup commented on Nov 5, 2026

    @DanTup

    lyndaidaii is there a way to set a trusted publisher policy against an individual extension (to ensure only Org/Repo1 can publish org.extension1)? I can only see settings against the Publisher, and the form has no option to specify the extension for each policy.

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions