Skip to content

ci: route NuGet through CFS feed and drop redundant version check - #751

Open
Gavin Barron (gavinbarron) wants to merge 2 commits into
mainfrom
gavinbarron/cfs-package-feeds
Open

ci: route NuGet through CFS feed and drop redundant version check#751
Gavin Barron (gavinbarron) wants to merge 2 commits into
mainfrom
gavinbarron/cfs-package-feeds

Conversation

@gavinbarron

Copy link
Copy Markdown
Contributor

Summary

Fixes the 1ES Network Isolation SFI policy violations flagged in the release pipeline (build 227486) by keeping NuGet traffic off public nuget.org during the build job.

Changes

  • Route NuGet restore through the CFS central package feed (private Azure Artifacts feed via generated nuget.config).
  • Drop the redundant Validate project version has been incremented step and delete scripts/ValidateProjectVersionUpdated.ps1.

Why drop the version check

  • The release pipeline triggers only on version tags (v*), so duplicate publishes cannot occur — the guard is redundant.
  • The script made a hardcoded Invoke-RestMethod call to api.nuget.org. Because it bypasses nuget.config/package sources entirely, the private feed could never suppress it, and Network Isolation flagged it (process pwsh.exe / task PowerShell / host api.nuget.org) in the build job.

Note

The deploy job's push to public nuget.org is the intended external publish and is out of scope here.

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
The release pipeline triggers only on version tags (v*), so duplicate publishes cannot occur and the version-increment guard is redundant. The check also made a hardcoded Invoke-RestMethod call to api.nuget.org, tripping 1ES Network Isolation SFI policy in the build job.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 268d092b-8fa1-45ef-952d-6f56b8e3d82d
@sonarqubecloud

Copy link
Copy Markdown

@github-project-automation github-project-automation Bot moved this to In Progress 🚧 in Kiota Jul 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has conflicting changes, the author must resolve the conflicts before this pull request can be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress 🚧

Development

Successfully merging this pull request may close these issues.

2 participants