Skip to content

Harden release publishing and signing restore for CFS network isolation#826

Merged
hanniavalera merged 1 commit into
mainfrom
dev/hanniavalera/cfsOnboardingClean
Jun 18, 2026
Merged

Harden release publishing and signing restore for CFS network isolation#826
hanniavalera merged 1 commit into
mainfrom
dev/hanniavalera/cfsOnboardingClean

Conversation

@hanniavalera

Copy link
Copy Markdown
Contributor

This pull request updates the build and release pipelines to improve the handling of NuGet and npm dependencies, particularly for the VSCE (Visual Studio Code Extension) publishing tool and its native signing binary. The changes ensure more reliable dependency resolution and signing during the build and release process.

Dependency management improvements:

  • Added a new NuGet.config file in the build directory to specify a custom package source for NuGet restores, improving reliability and control over package resolution.
  • Updated the NuGet restore step in jobs/shared/build.yml to explicitly use the new NuGet.config, ensuring the correct configuration is applied during package restoration.

VSCE toolchain and signing reliability:

  • Upgraded the global installation of @vscode/vsce from version 3.1.0 to 3.9.1 and added additional npm flags for more robust installation in both jobs/release/prerelease.yml and jobs/release/release.yml. [1] [2]
  • Added steps to rebuild the @vscode/vsce-sign native binary globally and verify its correct resolution and functionality using a PowerShell script. This ensures the signing tool is properly available and matches how vsce publish expects it, reducing the risk of signing failures. [1] [2]

Pin the release and pre-release publish jobs to @vscode/vsce@3.9.1 (whose full dependency closure is saved in the cpp_PublicPackages CFS feed, so the global install resolves anonymously under isolation; 3.1.0's closure is not reliably saved). Install with --include=optional --ignore-scripts=false --force, rebuild the vsce-sign native binary, and verify it via Node module resolution -- in a global install @vscode/vsce-sign is nested under @vscode/vsce/node_modules, so a hardcoded top-level path check is wrong. Route the MicroBuild signing 'nuget restore' through a committed build/NuGet.config (clear + devdiv/MicroBuildToolset) so it no longer reaches nuget.org under CFSClean.
@hanniavalera hanniavalera merged commit 31c3fad into main Jun 18, 2026
3 checks passed
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.

2 participants