Repository navigation
Remove AzureDevOpsFeedsKey from Build Promotion publish.yml (keyless Entra publishing) - #17185
Merged
mmitche merged 2 commits intoJul 24, 2026
Conversation
…Entra publishing)
Contributor
There was a problem hiding this comment.
Pull request overview
This PR re-applies the “keyless” (Entra/WIF-based) authentication flow for Maestro Build Promotion by removing the legacy Azure DevOps feed PAT wiring from the eng/publishing/v3/publish.yml pipeline. This aligns the promotion pipeline YAML with the newer Arcade SDK publishing tasks that can acquire Azure DevOps feed tokens via DefaultIdentityTokenCredential when no AzureDevOpsFeedsKey is provided.
Changes:
- Removes the
enable-cross-org-publishing.ps1step that injectedVSS_NUGET_ACCESSTOKENusing thedn-bot-all-orgs-artifact-feeds-rwPAT. - Removes the
/p:AzureDevOpsFeedsKey='$(dn-bot-all-orgs-artifact-feeds-rw)'MSBuild property from the publish invocation.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mmitche
approved these changes
Jul 24, 2026
mmitche
enabled auto-merge (squash)
July 24, 2026 18:29
Comment on lines
95
to
101
| - task: NuGetToolInstaller@1 | ||
| displayName: 'Install NuGet.exe' | ||
|
|
||
| - task: NuGetAuthenticate@1 | ||
| displayName: 'Authenticate to AzDO Feeds' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Enable cross-org publishing | ||
| inputs: | ||
| filePath: $(System.DefaultWorkingDirectory)/eng/common/enable-cross-org-publishing.ps1 | ||
| arguments: -token $(dn-bot-all-orgs-artifact-feeds-rw) | ||
|
|
||
| - task: AzureCLI@2 |
This was referenced Jul 24, 2026
missymessa
added a commit
that referenced
this pull request
Jul 24, 2026
…s, breaking prod promotions) (#17186)
missymessa
added a commit
to missymessa/arcade
that referenced
this pull request
Jul 27, 2026
…(keyless Entra publishing) (dotnet#17185)" This reverts commit 18d7b7b.
missymessa
added a commit
that referenced
this pull request
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Re-applies the keyless publishing change to
eng/publishing/v3/publish.ymlthat was temporarily reverted by #17182. Removes the/p:AzureDevOpsFeedsKey='$(dn-bot-all-orgs-artifact-feeds-rw)'MSBuild property and theenable-cross-org-publishing.ps1 -token $(dn-bot-all-orgs-artifact-feeds-rw)step so Maestro Build Promotion publishes to the AzDO feeds via its Entra identity (maestro-build-promotion) instead of thedn-bot-all-orgs-artifact-feeds-rwPAT.Why it's safe now (the version skew is resolved)
The original re-land (#17140) combined the task-side Entra fallback (
SetupTargetFeedConfigV3/V4→DefaultIdentityTokenCredential) with this YAML change. That broke Build Promotion becausemain'sglobal.jsonstill pinned the pre-fallback arcade SDK (11.0.0-beta.26372.4), so a keylesspublish.yml+ a key-requiring task producedNo key found ... unable to publish to it. #17182 reverted only the YAML to re-match the toolset.main'sglobal.jsonhas since self-updated to11.0.0-beta.26373.4(#17183), which contains the task-side Entra fallback. Keyless YAML is now consistent with the pinned toolset, so re-removing the key is safe.Validation (done before opening this PR)
20260723.6→ BAR build324229.20260724.13) of that build to the General Testing channel, pointed at the keyless branch.az login --service-principal ... --federated-token(themaestro-build-promotionSP), published tohttps://pkgs.dev.azure.com/dnceng/public/_packaging/general-testing/nuget/v3/index.json,Publishing finished with success., zero failed tasks, and no "No key found" error.Follow-up
Once this is merged and a real promotion is confirmed green, the
dn-bot-all-orgs-artifact-feeds-rwPAT can be retired (internal tracking: WI 10145).