Skip to content

Added CFSClean networkIsolationPolicy - #1947

Merged
v-jitendjain merged 6 commits into
mainfrom
users/v-jitendjain/networdisolationpolicy
Aug 11, 2026
Merged

v-jitendjain merged 6 commits into
mainfrom
users/v-jitendjain/networdisolationpolicy

Conversation

@v-jitendjain

@v-jitendjain v-jitendjain commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

This pull request updates several Azure Pipelines YAML files to explicitly set the networkIsolationPolicy to Permissive,CFSClean for various build, test, and dependency check jobs. This change ensures consistent network isolation settings across the pipeline, which may be required for compliance or security reasons.

Pipeline configuration updates:

  • Added networkIsolationPolicy: Permissive,CFSClean to the job pool settings in build/check-dependencies.yml to control network isolation during dependency checks.
  • Added networkIsolationPolicy: Permissive,CFSClean under settings in the templateContext for the build and unit test job in build/build-and-unit-tests.yml.
  • Added networkIsolationPolicy: Permissive,CFSClean to the settings parameters in build/prbuild.yml for PR builds.
  • Added networkIsolationPolicy: Permissive,CFSClean under settings in the templateContext for the UI test job in build/ui-test-job.yml.
  • Adds a nuget.config with the feed details.

… inputs

check-dependencies.yml declared networkIsolationPolicy under pool:, which is
not part of the pool schema. The job was only compliant because prbuild.yml
sets the policy pipeline-wide and it cascades down. Move it to
templateContext.settings so the job declares its own policy correctly.

signedbuild.yml had feedsToUse and nugetConfigPath indented inside the
projects: | block scalar in all three DotNetCoreCLI@2 restores, so they were
parsed as project glob patterns instead of task inputs and the restores were
never actually pinned to src/nuget.config. Move them to the inputs level.

Also add the NuGetAuthenticate@1 step ahead of each restore in signedbuild.yml,
matching the other build templates.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 0add1f23-4df3-4efa-8237-fe45d7d5e747

Copilot AI left a comment

Copy link
Copy Markdown

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 Azure Pipelines/1ES template YAMLs to standardize job network isolation behavior by setting networkIsolationPolicy: Permissive,CFSClean, and also introduces a dedicated nuget.config plus pipeline changes to authenticate and restore packages using that config.

Changes:

  • Add networkIsolationPolicy: Permissive,CFSClean to multiple job/pipeline settings (templateContext.settings and extends.parameters.settings).
  • Add NuGetAuthenticate@1 and configure restore tasks to use src/nuget.config.
  • Introduce src/nuget.config pointing restores at an Azure Artifacts feed.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/nuget.config Adds a NuGet configuration that clears sources and points restores to an Azure Artifacts feed.
build/ui-test-job.yml Applies networkIsolationPolicy to the UI test job and updates NuGet authentication/restore behavior.
build/signedbuild.yml Adds NuGet authentication and config-based restore settings to signed build jobs.
build/prbuild.yml Sets pipeline-level networkIsolationPolicy in 1ES extends.parameters.settings.
build/check-dependencies.yml Applies networkIsolationPolicy and uses authenticated/config-based NuGet restore for dependency checks.
build/build-and-unit-tests.yml Applies networkIsolationPolicy and uses authenticated/config-based NuGet + dotnet restore for unit test builds.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread build/ui-test-job.yml
Comment thread build/build-and-unit-tests.yml
Comment thread src/nuget.config
@v-jitendjain
v-jitendjain marked this pull request as ready for review August 10, 2026 12:37
@v-jitendjain
v-jitendjain requested a review from a team as a code owner August 10, 2026 12:37

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@v-jitendjain
v-jitendjain merged commit 3f6c035 into main Aug 11, 2026
12 checks passed
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.

4 participants