Skip to content

Remove AzureDevOpsFeedsKey from Build Promotion publish.yml (keyless Entra publishing) - #17185

Merged
mmitche merged 2 commits into
dotnet:mainfrom
missymessa:missymessa/remove-feeds-key-keyless-publish
Jul 24, 2026
Merged

mmitche merged 2 commits into
dotnet:mainfrom
missymessa:missymessa/remove-feeds-key-keyless-publish

Conversation

@missymessa

@missymessa missymessa commented Jul 24, 2026 •

Copy link
Copy Markdown
Member

What

Re-applies the keyless publishing change to eng/publishing/v3/publish.yml that was temporarily reverted by #17182. Removes the /p:AzureDevOpsFeedsKey='$(dn-bot-all-orgs-artifact-feeds-rw)' MSBuild property and the enable-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 the dn-bot-all-orgs-artifact-feeds-rw PAT.

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 because main's global.json still pinned the pre-fallback arcade SDK (11.0.0-beta.26372.4), so a keyless publish.yml + a key-requiring task produced No key found ... unable to publish to it. #17182 reverted only the YAML to re-match the toolset.

main's global.json has since self-updated to 11.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)

  • Built arcade from a branch carrying this exact change: official build 20260723.6 → BAR build 324229.
  • Ran a Build Promotion (def 750, build 20260724.13) of that build to the General Testing channel, pointed at the keyless branch.
  • "Publish packages, blobs and symbols" succeeded keyless: authenticated via az login --service-principal ... --federated-token (the maestro-build-promotion SP), published to https://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-rw PAT can be retired (internal tracking: WI 10145).

Copilot AI review requested due to automatic review settings July 24, 2026 18:24

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.

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.ps1 step that injected VSS_NUGET_ACCESSTOKEN using the dn-bot-all-orgs-artifact-feeds-rw PAT.
  • 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.

@missymessa
missymessa requested a review from mmitche July 24, 2026 18:28
@mmitche
mmitche enabled auto-merge (squash) July 24, 2026 18:29
Copilot AI review requested due to automatic review settings July 24, 2026 19:11

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

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
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