Skip to content

Use eng/common enable-internal-sources.yml for internal feeds auth - #14353

Merged
ViktorHofer merged 1 commit into
mainfrom
UseEngCommonAuthYml
Jul 14, 2026
Merged

ViktorHofer merged 1 commit into
mainfrom
UseEngCommonAuthYml

Conversation

@ViktorHofer

Copy link
Copy Markdown
Member

Fixes #

Context

Changes Made

Testing

Notes

Copilot AI review requested due to automatic review settings July 14, 2026 11:53
@ViktorHofer
ViktorHofer temporarily deployed to copilot-pat-pool July 14, 2026 11:53 — with GitHub Actions Inactive
@ViktorHofer
ViktorHofer temporarily deployed to copilot-pat-pool July 14, 2026 11:54 — with GitHub Actions Inactive
@ViktorHofer
ViktorHofer temporarily deployed to copilot-pat-pool July 14, 2026 11:54 — with GitHub Actions Inactive
@ViktorHofer
ViktorHofer merged commit 82b927b into main Jul 14, 2026
6 of 18 checks passed
@ViktorHofer
ViktorHofer deleted the UseEngCommonAuthYml branch July 14, 2026 11:55

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 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@2 step that injected private feed credentials into NuGet.config.
  • Added eng/common/templates-official/steps/enable-internal-sources.yml to 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

@github-actions github-actions Bot 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.

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

The threat detection results could not be parsed.

Review the workflow run logs for details.

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.yml with is1ESPipeline: true.
  • No other usages of the old SetupNugetSources.ps1 approach remain in azure-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

@ViktorHofer
ViktorHofer temporarily deployed to copilot-pat-pool July 14, 2026 12:01 — with GitHub Actions Inactive
ViktorHofer pushed a commit that referenced this pull request Aug 26, 2026
## 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]>
ViktorHofer pushed a commit that referenced this pull request Aug 26, 2026
## 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]>
ViktorHofer pushed a commit that referenced this pull request Aug 26, 2026
## 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]>
ViktorHofer pushed a commit that referenced this pull request Aug 26, 2026
## 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]>
ViktorHofer pushed a commit that referenced this pull request Aug 27, 2026
## 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]>
ViktorHofer pushed a commit that referenced this pull request Aug 27, 2026
## 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]>

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — b1b13fab Deployed Jul 14, 2026 by ViktorHofer via conclusion #451
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