Skip to content

Migrate DevDiv VS feed push from PAT to WIF (Entra) - #564

Merged
marcpopMSFT merged 2 commits into
dotnet:mainfrom
missymessa:migrate-vs-feed-to-wif
Jul 9, 2026
Merged

marcpopMSFT merged 2 commits into
dotnet:mainfrom
missymessa:migrate-vs-feed-to-wif

Conversation

@missymessa

@missymessa missymessa commented Jul 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Migrates the NuGet package push to the DevDiv VS feed from the PAT-backed \DevDiv - VS package feed\ service connection to the new WIF-based \dnceng-devdiv-vs-feed-push\ service connection (Entra app: \dnceng-devdiv-vs-feed-push).

Changes

  • eng/jobs/windows-build.yml (1ES official template): Replaced \output: nuget\ declarative blocks with inline \NuGetAuthenticate@1\ + \dotnet nuget push\ steps. The 1ES template's \output: nuget\ validates SC type at parse time and rejects \workloadidentityuser\ SCs.
  • eng/jobs/windows-build-PR.yml (non-1ES): Replaced \NuGetCommand@2\ tasks with \NuGetAuthenticate@1\ + \dotnet nuget push\ steps.

Migration Details

Item Value
Work Item dnceng/internal#10125
Old SC \DevDiv - VS package feed\ (type: externalnugetfeed, PAT-backed)
New SC \dnceng-devdiv-vs-feed-push\ (type: workloadidentityuser, WIF)
Entra App \dnceng-devdiv-vs-feed-push\ (App ID: 062ab7c6-91b9-4d6f-95d5-a49a7f1c9f6d)
Feed https://devdiv.pkgs.visualstudio.com/_packaging/VS/nuget/v3/index.json
Pipeline dotnet-deployment-tools (def 877) — SC authorized

Verification

Note: PR validation reads YAML from \main, so this PR build will execute the old YAML. Real validation is post-merge — monitor the first CI build after merge to confirm WIF push succeeds.

Test build ran: https://dev.azure.com/dnceng/internal/_build/results?buildId=3017543

Post-Merge Cleanup (after verification)

  1. Delete old PAT-backed SC \DevDiv - VS package feed\ from dnceng/internal
  2. Remove from .vault-config/service-connections-dnceng.yaml\ in dotnet/dnceng
  3. Close work item 10125

Replace PAT-backed 'DevDiv - VS package feed' service connection with
WIF-based 'dnceng-devdiv-vs-feed-push' SC using NuGetAuthenticate@1.

The 1ES template's output:nuget declarative style cannot use WIF SCs
(type validation rejects workloadidentityuser), so switch to inline
NuGetAuthenticate@1 + dotnet nuget push steps.

Resolves: dnceng/internal#10125
@missymessa
missymessa requested a review from a team as a code owner July 7, 2026 21:36
…at template compile time)

The eq(variables['_BuildConfig'], 'Release') condition evaluates to false
at template compile time because matrix variables aren't resolved then.
For internal non-PR builds, only Release matrix entry exists anyway, so
the check is redundant.
@missymessa

Copy link
Copy Markdown
Member Author

@marcpopMSFT @joeloff please take a look! :)

@missymessa

Copy link
Copy Markdown
Member Author

@marcpopMSFT can you merge this one as well? Thanks!

@marcpopMSFT
marcpopMSFT merged commit 5123486 into dotnet:main Jul 9, 2026
9 checks passed
missymessa added a commit to dotnet/dnceng that referenced this pull request Jul 10, 2026
Migrated to WIF SC 'dnceng-devdiv-vs-feed-push' in dotnet/deployment-tools#564.
Post-merge CI build 3018885 confirmed working.
Old SC already deleted from AzDO.

Resolves: dnceng/internal#10125
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