Skip to content

Set networkIsolationPolicy in Azure pipeline - #330

Merged
Peter Spada (spadapet) merged 1 commit into
mainfrom
dev/peterspa/networkIsolationPolicy
Jul 31, 2026
Merged

Set networkIsolationPolicy in Azure pipeline#330
Peter Spada (spadapet) merged 1 commit into
mainfrom
dev/peterspa/networkIsolationPolicy

Conversation

@spadapet

Copy link
Copy Markdown
Member

When this code builds in ADO, it's not supposed to use nuget.org as a feed, and I stopped using it with a recent PR. But the network isolation policy also needs to be set to really block it. I copied this from many other pipelines.

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

Updates the Azure DevOps (ADO) official build pipeline to pass a network isolation configuration into the 1ES MicroBuild template, aiming to ensure the build environment cannot reach disallowed external package feeds (e.g., nuget.org).

Changes:

  • Adds settings.networkIsolationPolicy to the extends.parameters block in the ADO pipeline YAML.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread azure-pipelines/build.yml
Comment on lines +42 to +43
settings:
networkIsolationPolicy: Permissive,CFSClean,CFSClean2,CFSClean3

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That's what everyone else does. Permissive is first anyway, CFSClean will block.

@spadapet
Peter Spada (spadapet) merged commit ea279eb into main Jul 31, 2026
7 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.

3 participants