fix(ci): route NuGet version check through CFS - #3162
Merged
Gavin Barron (gavinbarron) merged 3 commits intoAug 5, 2026
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d194c7-5fba-4802-a182-3b3ef5c5c0ab
Replace the direct public NuGet API request with dotnet package search using the authenticated Central Feed Service configuration. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d194c7-5fba-4802-a182-3b3ef5c5c0ab
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the CI “published-package version” validation to query package versions via the authenticated Central Feed Service (CFS) using dotnet package search and a generated nuget.config, eliminating the direct unauthenticated call to the public NuGet registration API.
Changes:
- Add a mandatory
-nugetConfigPathparameter to the validation script and use it for package search. - Replace
Invoke-RestMethod(NuGet registration API) withdotnet package search --format json. - Wire the generated
nuget.configpath into the Azure Pipelines validation step.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| scripts/ValidateUpdatedNugetVersion.ps1 | Switches version lookup from NuGet registration API to dotnet package search using an authenticated nuget.config. |
| .azure-pipelines/ci-build.yml | Passes the generated nuget.config path into the validation script invocation. |
Gavin Barron (gavinbarron)
enabled auto-merge (squash)
August 5, 2026 01:12
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03d194c7-5fba-4802-a182-3b3ef5c5c0ab
Peter Ombwa (peombwa)
approved these changes
Aug 5, 2026
Gavin Barron (gavinbarron)
deleted the
gavinbarron-fix-cfsclean-failures
branch
August 5, 2026 02:09
This was referenced Aug 6, 2026
Open
This was referenced Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nuget.configinto the validation scriptValidation
dotnet package search --configfileagainst Microsoft.GraphMicrosoft Reviewers: Open in CodeFlow