From c0318f0c90c86d4f76a107d74d5bb4ffa1da2185 Mon Sep 17 00:00:00 2001 From: Marc Paine Date: Fri, 17 May 2024 13:51:35 -0700 Subject: [PATCH] Disable CG on PR builds --- .vsts-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 52443cb34..d08d50d3c 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -70,6 +70,9 @@ extends: name: $(DncEngInternalBuildPool) image: 1es-windows-2019 os: windows + ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: + componentgovernance: + ignoreDirectories: artifacts, .packages stages: - stage: build jobs: