From 02ab958ce89fe11ae011c558cc241a9676d848bc Mon Sep 17 00:00:00 2001 From: "Gavin Barron (from Dev Box)" Date: Mon, 20 Jul 2026 09:12:09 -0700 Subject: [PATCH] Route NuGet restore through the CFS central package feed Routes CI package restore through the authenticated GraphDeveloperExperiences_Public Azure Artifacts feed (network isolation / CFS compliance). Requires a pipeline run to validate against the feed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9bd6fe40-0d69-4e3f-927b-8628c0ab6d34 --- pipelines/ci-build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pipelines/ci-build.yml b/pipelines/ci-build.yml index c95744f5b32..a1c15f0d738 100644 --- a/pipelines/ci-build.yml +++ b/pipelines/ci-build.yml @@ -61,11 +61,27 @@ extends: inputs: packageType: sdk version: 6.x + - task: NuGetAuthenticate@1 + displayName: 'Authenticate to Azure Artifacts' + + - pwsh: | + @" + + + + + + + + "@ | Set-Content -Path "$(Build.SourcesDirectory)/nuget.config" -Encoding UTF8 + displayName: 'Create nuget.config (central feed)' - task: DotNetCoreCLI@2 displayName: 'dotnet restore' inputs: command: restore projects: '**/*.csproj' + feedsToUse: "config" + nugetConfigPath: "$(Build.SourcesDirectory)/nuget.config" - task: PowerShell@2 displayName: 'Validate updated version' condition: and(contains(variables['build.sourceBranch'], 'refs/heads/main'), succeeded())