From 75ddbc904219221ab7effa2a967d138ae6557889 Mon Sep 17 00:00:00 2001 From: Missy Messa Date: Fri, 29 May 2026 11:47:22 -0700 Subject: [PATCH] Remove legacyCredential PAT usage from enable-internal-sources calls The enable-internal-sources.yml template already handles DevDiv projects by using the 'dnceng-artifacts-feeds-read' federated service connection. Passing legacyCredential overrides this with PAT-based auth unnecessarily. This removes the PAT dependency (dn-bot-dnceng-artifact-feeds-rw) from publish-build-assets and post-build templates. Fixes AB#10143 --- eng/common/core-templates/job/publish-build-assets.yml | 3 --- eng/common/core-templates/post-build/post-build.yml | 2 -- 2 files changed, 5 deletions(-) diff --git a/eng/common/core-templates/job/publish-build-assets.yml b/eng/common/core-templates/job/publish-build-assets.yml index 700f7711465..4229288d3d3 100644 --- a/eng/common/core-templates/job/publish-build-assets.yml +++ b/eng/common/core-templates/job/publish-build-assets.yml @@ -122,9 +122,6 @@ jobs: # Populate internal runtime variables. - template: /eng/common/templates/steps/enable-internal-sources.yml - ${{ if eq(variables['System.TeamProject'], 'DevDiv') }}: - parameters: - legacyCredential: $(dn-bot-dnceng-artifact-feeds-rw) - template: /eng/common/templates/steps/enable-internal-runtimes.yml diff --git a/eng/common/core-templates/post-build/post-build.yml b/eng/common/core-templates/post-build/post-build.yml index 8aa86e30491..9d951352696 100644 --- a/eng/common/core-templates/post-build/post-build.yml +++ b/eng/common/core-templates/post-build/post-build.yml @@ -295,8 +295,6 @@ stages: # Populate internal runtime variables. - template: /eng/common/templates/steps/enable-internal-sources.yml - parameters: - legacyCredential: $(dn-bot-dnceng-artifact-feeds-rw) - template: /eng/common/templates/steps/enable-internal-runtimes.yml