Skip to content

fix(release): add skip-ovsx opt-out to vscode-promote-prerelease.yml - W-24666922 - #200

Open
madhur310 wants to merge 1 commit into
mainfrom
ms/W-24666922-promote-prerelease-skip-ovsx
Open

madhur310 wants to merge 1 commit into
mainfrom
ms/W-24666922-promote-prerelease-skip-ovsx

Conversation

@madhur310

Copy link
Copy Markdown
Contributor

Summary

  • Adds an optional skip-ovsx input (default 'false') to vscode-promote-prerelease.yml, gating its inline ovsx publish step. Every existing caller is unaffected by default.

Context

A caller migrating Open VSX publishing to OIDC trusted publishing needs the actual ovsx publish step to run from the same top-level workflow file for every release channel — Open VSX's trusted-publisher match keys off the OIDC token's workflow_ref claim (the run's initiating workflow), and only allows one trusted-publisher registration per extension (confirmed server-side in eclipse-openvsx/openvsx's TrustedPublishingService.registerTrustedPublisher).

forcedotcom/salesforcedx-vscode is doing exactly this: it's adding a dedicated top-level workflow (publishOpenVSXTrusted.yml) that both its stable-release path (direct trigger) and its prerelease-promotion path (explicit workflow_dispatch) use as the single initiating workflow for Open VSX. For that to work, vscode-promote-prerelease.yml's own inline ovsx leg — which runs as part of the caller's prerelease-promotion run, not a separately initiated one — needs to stay out of the way entirely, not just get skipped by a dry-run flag. skip-ovsx: 'true' lets salesforcedx-vscode's caller opt out cleanly while every other consumer of this shared workflow keeps today's PAT-based behavior unchanged.

Validation

  • actionlint: same single pre-existing shellcheck notice as before this change (confirmed via git stash/diff against main), zero new findings.

Test plan

  • Merge
  • forcedotcom/salesforcedx-vscode's promote-to-prerelease.yml call adds skip-ovsx: 'true' and confirms the ovsx matrix leg logs the skip message and exits 0 without needing IDEE_OVSX_PAT
  • An existing consumer that doesn't pass skip-ovsx confirms unchanged behavior

@W-24666922@

…- W-24666922

A caller migrating Open VSX publishing to OIDC trusted publishing needs its
ovsx publish step to run from the same top-level workflow file for every
release channel (Open VSX's trusted-publisher match keys off the OIDC
token's workflow_ref claim -- the run's initiating workflow -- and only
allows one trusted-publisher registration per extension). This workflow's
own inline ovsx publish, run as part of the caller's prerelease-promotion
workflow, can't share that workflow_ref with a separate stable-release
workflow.

Adds an optional skip-ovsx input (default 'false', so every existing
caller is unaffected) that lets a caller opt its ovsx leg out entirely,
e.g. because it publishes Open VSX itself via a separate trusted-publishing
dispatch instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant