Repository navigation
Use eng/common enable-internal-sources.yml for internal feeds auth - #14353
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the official Windows build job template to use the standardized eng/common internal-feed authentication step template, instead of directly invoking SetupNugetSources.ps1 with a pipeline secret.
Changes:
- Replaced an inline
PowerShell@2step that injected private feed credentials intoNuGet.config. - Added
eng/common/templates-official/steps/enable-internal-sources.ymlto centralize internal feed auth behavior.
Show a summary per file
| File | Description |
|---|---|
| azure-pipelines/.vsts-dotnet-build-jobs.yml | Swaps custom private-feed credential setup for the shared enable-internal-sources.yml template used across eng/common. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 0
There was a problem hiding this comment.
Caution
agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.
Code Review: Use eng/common enable-internal-sources.yml for internal feeds auth
Summary: This is a straightforward infrastructure maintenance change with no functional concerns. ✅
What changed
Replaced a manual PowerShell task (SetupNugetSources.ps1 + explicit dn-bot-dnceng-artifact-feeds-rw token) with the shared eng/common/templates-official/steps/enable-internal-sources.yml template.
Verification
- The referenced template (
/eng/common/templates-official/steps/enable-internal-sources.yml) exists in the repository and correctly delegates to/eng/common/core-templates/steps/enable-internal-sources.ymlwithis1ESPipeline: true. - No other usages of the old
SetupNugetSources.ps1approach remain inazure-pipelines/.
Assessment
- Infrastructure Stability ✅ — Using the canonical shared template is the correct pattern for Arcade-based repos. It reduces maintenance burden and keeps auth logic in sync with updates to
eng/common. - Security ✅ — The old approach required explicitly managing a PAT secret (
dn-bot-dnceng-artifact-feeds-rw). The new template handles credential acquisition internally, reducing the secret surface area in pipeline definitions. - Scope discipline ✅ — Single-concern change, well-scoped.
No issues found.
Generated by Expert Code Review (on open) for #14353 · 31.5 AIC · ⊞ 30.4K
## Context Backport #14353 to vs18.6 so official builds use short-lived Workload Identity Federation credentials instead of the legacy internal-feed PAT. ## Changes Made - Replace the inline PAT-based feed setup with the existing official enable-internal-sources template. - Remove the legacy PAT reference. - Match the authentication migration already merged in #14353. - Bump the servicing version to 18.6.22. ## Testing Validated the #14353-equivalent YAML change, referenced helper availability, XML structure, and monotonic servicing-version increment. --------- Co-authored-by: Copilot <[email protected]>
## Context Backport #14353 to vs17.11 so official builds use short-lived Workload Identity Federation credentials instead of the legacy internal-feed PAT. ## Changes Made - Obtain a short-lived Azure DevOps token through the existing federated service connection. - Use that token to configure internal NuGet feeds. - Install/configure the Azure Artifacts credential provider with NuGetAuthenticate@1. - Remove the legacy PAT reference. - Bump the servicing version to 17.11.66. ## Testing Validated the YAML structure, token flow, task ordering, removal of the legacy PAT reference, XML structure, and monotonic servicing-version increment. --------- Co-authored-by: Copilot <[email protected]>
## Context Backport #14353 to vs17.14 so official builds use short-lived Workload Identity Federation credentials instead of the legacy internal-feed PAT. ## Changes Made - Replace the inline PAT-based feed setup with the existing official enable-internal-sources template. - Remove the legacy PAT reference. - Match the authentication migration already merged in #14353. - Bump the servicing version to 17.14.59. ## Testing Validated the #14353-equivalent YAML change, referenced helper availability, XML structure, and monotonic servicing-version increment. --------- Co-authored-by: Copilot <[email protected]>
## Context Backport #14353 to vs17.12 so official builds use short-lived Workload Identity Federation credentials instead of the legacy internal-feed PAT. ## Changes Made - Replace the inline PAT-based feed setup with the existing official enable-internal-sources template. - Remove the legacy PAT reference. - Match the authentication migration already merged in #14353. - Bump the servicing version to 17.12.72. ## Testing Validated the #14353-equivalent YAML change, referenced helper availability, XML structure, and monotonic servicing-version increment. --------- Co-authored-by: Copilot <[email protected]>
## Context Backport #14353 to vs18.0 so official builds use short-lived Workload Identity Federation credentials instead of the legacy internal-feed PAT. ## Changes Made - Replace the inline PAT-based feed setup with the existing official enable-internal-sources template. - Remove the legacy PAT reference. - Match the authentication migration already merged in #14353. - Bump the servicing version to 18.0.31. ## Testing Validated the #14353-equivalent YAML change, referenced helper availability, XML structure, and monotonic servicing-version increment. --------- Co-authored-by: Copilot <[email protected]>
## Context Backport #14353 to vs18.9 so official builds use short-lived Workload Identity Federation credentials instead of the legacy internal-feed PAT. ## Changes Made - Replace the inline PAT-based feed setup with the existing official enable-internal-sources template. - Remove the legacy PAT reference. - Match the authentication migration already merged in #14353. - Bump the servicing version to 18.9.13. ## Testing Validated the #14353-equivalent YAML change, referenced helper availability, XML structure, and monotonic servicing-version increment. --------- Co-authored-by: Copilot <[email protected]>
Fixes #
Context
Changes Made
Testing
Notes