Skip to content

Fix NuGetAuthenticate for devdiv-engineering-feed-r-wif WIF service connection - #6902

Merged
missymessa merged 1 commit into
dotnet:mainfrom
missymessa:fix-vmr-nuget-auth-wif
May 28, 2026
Merged

missymessa merged 1 commit into
dotnet:mainfrom
missymessa:fix-vmr-nuget-auth-wif

Conversation

@missymessa

Copy link
Copy Markdown
Member

Summary

Fixes the NuGetAuthenticate@1 task configuration for the devdiv-engineering-feed-r-wif service connection in the VMR build template.

Problem

PR #6635 added devdiv-engineering-feed-r-wif to the nuGetServiceConnections input, but that input only accepts service connections of type ExternalNuGetFeed. Our WIF service connection is type workloadidentityuser, which causes:

The pipeline is not valid. Step NuGetAuthenticate input nuGetServiceConnections expects a service connection of type ExternalNuGetFeed but the provided service connection is of type workloadidentityuser.

This is the same issue that was discovered and fixed in dotnet/roslyn#83918.

Fix

Split into two separate NuGetAuthenticate@1 tasks:

  • One using nuGetServiceConnections for the ExternalNuGetFeed type (devdiv/dotnet-core-internal-tooling)
  • One using azureDevOpsServiceConnection + feedUrl for the WIF type (devdiv-engineering-feed-r-wif)

Related

The devdiv-engineering-feed-r-wif SC is type workloadidentityuser which requires
azureDevOpsServiceConnection + feedUrl inputs. nuGetServiceConnections only accepts
ExternalNuGetFeed type. Same fix pattern as dotnet/roslyn#83918.
Copilot AI review requested due to automatic review settings May 28, 2026 18:52
@missymessa
missymessa requested review from a team as code owners May 28, 2026 18:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@missymessa
missymessa enabled auto-merge May 28, 2026 20:48
@missymessa
missymessa merged commit 9698269 into dotnet:main May 28, 2026
11 checks passed
akhera99 pushed a commit to dotnet/roslyn that referenced this pull request Jul 7, 2026
…#84414)

## Summary

Replace PAT-backed externalnugetfeed SC with WIF-based
azureDevOpsServiceConnection for the devdiv/dotnet-core-internal-tooling
NuGet feed.

## Motivation

Part of PAT disable policy migration ([dnceng WI
10124](https://dnceng.visualstudio.com/internal/_workitems/edit/10124)).

## Changes

- **Before:** nuGetServiceConnections:
'devdiv/dotnet-core-internal-tooling' (PAT-based ExternalNuGetFeed SC)
- **After:** azureDevOpsServiceConnection + feedUrl (WIF SC backed by
Entra app)

## New Service Connection

- **Name:** dnceng-devdiv-dotnet-core-internal-tooling-feed-rw-wif
- **Type:** workloadidentityuser
- **Target:**
https://pkgs.dev.azure.com/devdiv/_packaging/dotnet-core-internal-tooling/nuget/v3/index.json

Same pattern as the devdiv/engineering feed migration
(#83918, dotnet/dotnet#6902).
akoeplinger pushed a commit to dotnet/runtime that referenced this pull request Jul 8, 2026
…#130264)

## Summary

Replace PAT-backed externalnugetfeed SC with WIF-based
azureDevOpsServiceConnection for the devdiv/dotnet-core-internal-tooling
NuGet feed.

## Motivation

Part of PAT disable policy migration ([dnceng WI
10124](https://dnceng.visualstudio.com/internal/_workitems/edit/10124)).

## Changes

- **Before:** nuGetServiceConnections:
'devdiv/dotnet-core-internal-tooling' (PAT-based ExternalNuGetFeed SC)
- **After:** azureDevOpsServiceConnection + feedUrl (WIF SC backed by
Entra app)

## New Service Connection

- **Name:** dnceng-devdiv-dotnet-core-internal-tooling-feed-rw-wif
- **Type:** workloadidentityuser
- **Target:**
https://pkgs.dev.azure.com/devdiv/_packaging/dotnet-core-internal-tooling/nuget/v3/index.json

Same pattern as the devdiv/engineering feed migration
(dotnet/roslyn#83918, dotnet/dotnet#6902).
akhera99 pushed a commit to akhera99/roslyn that referenced this pull request Jul 8, 2026
…dotnet#84414)

Replace PAT-backed externalnugetfeed SC with WIF-based
azureDevOpsServiceConnection for the devdiv/dotnet-core-internal-tooling
NuGet feed.

Part of PAT disable policy migration ([dnceng WI
10124](https://dnceng.visualstudio.com/internal/_workitems/edit/10124)).

- **Before:** nuGetServiceConnections:
'devdiv/dotnet-core-internal-tooling' (PAT-based ExternalNuGetFeed SC)
- **After:** azureDevOpsServiceConnection + feedUrl (WIF SC backed by
Entra app)

- **Name:** dnceng-devdiv-dotnet-core-internal-tooling-feed-rw-wif
- **Type:** workloadidentityuser
- **Target:**
https://pkgs.dev.azure.com/devdiv/_packaging/dotnet-core-internal-tooling/nuget/v3/index.json

Same pattern as the devdiv/engineering feed migration
(dotnet#83918, dotnet/dotnet#6902).
eiriktsarpalis pushed a commit to dotnet/runtime that referenced this pull request Jul 15, 2026
…#130264)

## Summary

Replace PAT-backed externalnugetfeed SC with WIF-based
azureDevOpsServiceConnection for the devdiv/dotnet-core-internal-tooling
NuGet feed.

## Motivation

Part of PAT disable policy migration ([dnceng WI
10124](https://dnceng.visualstudio.com/internal/_workitems/edit/10124)).

## Changes

- **Before:** nuGetServiceConnections:
'devdiv/dotnet-core-internal-tooling' (PAT-based ExternalNuGetFeed SC)
- **After:** azureDevOpsServiceConnection + feedUrl (WIF SC backed by
Entra app)

## New Service Connection

- **Name:** dnceng-devdiv-dotnet-core-internal-tooling-feed-rw-wif
- **Type:** workloadidentityuser
- **Target:**
https://pkgs.dev.azure.com/devdiv/_packaging/dotnet-core-internal-tooling/nuget/v3/index.json

Same pattern as the devdiv/engineering feed migration
(dotnet/roslyn#83918, dotnet/dotnet#6902).
missymessa added a commit that referenced this pull request Sep 28, 2026
Replace the retiring devdiv/engineering PAT service connection with the proven WIF NuGetAuthenticate task configuration from #6902.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 0a4ed861-2664-48de-a412-84d7adccd0f0
missymessa added a commit that referenced this pull request Sep 28, 2026
Backport the NuGetAuthenticate task split from #6902 so the WIF service connection uses azureDevOpsServiceConnection and feedUrl instead of the ExternalNuGetFeed-only input.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 0a4ed861-2664-48de-a412-84d7adccd0f0
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.

3 participants