Skip to content

[release/10.0] Remove legacyCredential PAT usage from Arcade templates - #17081

Closed
missymessa wants to merge 2 commits into
dotnet:release/10.0from
missymessa:remove-legacy-credential-release-10.0
Closed

missymessa wants to merge 2 commits into
dotnet:release/10.0from
missymessa:remove-legacy-credential-release-10.0

Conversation

@missymessa

Copy link
Copy Markdown
Member

Summary

Re-applies the legacyCredential removal that was lost when release/10.0 was reset (original PR #16921 merged June 30, commit \848aca53\ no longer in branch history).

Removes \legacyCredential: \ from:

  • \�ng/common/core-templates/job/publish-build-assets.yml\
  • \�ng/common/core-templates/post-build/post-build.yml\

Without this parameter, \�nable-internal-sources.yml\ uses the WIF-backed \dnceng-artifacts-feeds-read\ service connection (for DevDiv) or \NuGetAuthenticate\ with \System.AccessToken\ (for dnceng). Both paths are verified working.

Context

The \dn-bot-dnceng-artifact-feeds-rw\ PAT has been fully migrated:

Fixes AB#10143

The legacyCredential parameter passed dn-bot-dnceng-artifact-feeds-rw to
enable-internal-sources.yml, overriding the modern WIF-backed service
connection path. This PAT has been migrated to the dnceng-artifacts-feeds-read
service connection (managed identity).

The original removal (PR dotnet#16921) was merged June 30 but lost to a subsequent
branch reset. Re-applying the same change.

Work item: AB#10143

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 updates Arcade’s Azure Pipelines templates on release/10.0 to stop passing the deprecated legacyCredential PAT into enable-internal-sources.yml, allowing authentication to flow through the modern WIF/service-connection or System.AccessToken paths.

Changes:

  • Remove legacyCredential: $(dn-bot-dnceng-artifact-feeds-rw) from the enable-internal-sources.yml call in the post-build stage template.
  • Remove the DevDiv-only conditional block that passed legacyCredential in the publish-build-assets job template.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
eng/common/core-templates/post-build/post-build.yml Stops passing the legacy PAT into internal source enablement during post-build.
eng/common/core-templates/job/publish-build-assets.yml Removes the DevDiv-only legacy PAT parameter injection for internal source enablement.

@mmitche

mmitche commented Jul 8, 2026

Copy link
Copy Markdown
Member

No changes?

@missymessa

Copy link
Copy Markdown
Member Author

No changes?

wtf copilot

@missymessa
missymessa force-pushed the remove-legacy-credential-release-10.0 branch from cc94d77 to 9324231 Compare July 8, 2026 18:12
Copilot AI review requested due to automatic review settings July 9, 2026 17:03

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 wasn't able to review any files in this pull request.

@missymessa
missymessa force-pushed the remove-legacy-credential-release-10.0 branch from 1de16dd to 9324231 Compare July 9, 2026 17:09
Copilot AI review requested due to automatic review settings July 9, 2026 17:09
@missymessa
missymessa enabled auto-merge (squash) July 9, 2026 17:10

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 2 out of 2 changed files in this pull request and generated no new comments.

@missymessa

Copy link
Copy Markdown
Member Author

Closing — release/10.0 already has the legacyCredential removal from the original PR #16921 (commit 848aca5). The diff is empty because the target branch already contains the change.

@missymessa missymessa closed this Jul 9, 2026
auto-merge was automatically disabled July 9, 2026 23:43

Pull request was closed

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