From 1cd27bdb70d7aaaf4d23708d4f7b6dd0b0429ad9 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Thu, 3 Feb 2022 17:34:06 -0800 Subject: [PATCH] Fail build on Component Governance alert (#1385) --- azure-pipelines/build.yml | 7 ++++++- azure-pipelines/release.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/azure-pipelines/build.yml b/azure-pipelines/build.yml index e9fa81c8..e9aa0575 100644 --- a/azure-pipelines/build.yml +++ b/azure-pipelines/build.yml @@ -214,4 +214,9 @@ steps: command: push packagesToPush: '$(Build.SourcesDirectory)/artifacts/nugetPackages/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg' publishVstsFeed: '2191dd5f-4aec-491b-ac50-568bbc331c8a' - allowPackageConflicts: true \ No newline at end of file + allowPackageConflicts: true + +- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 + displayName: 'Component Detection' + inputs: + failOnAlert: true \ No newline at end of file diff --git a/azure-pipelines/release.yml b/azure-pipelines/release.yml index 71617d4f..24d7bca4 100644 --- a/azure-pipelines/release.yml +++ b/azure-pipelines/release.yml @@ -29,4 +29,9 @@ steps: workingDirectory: '$(Build.SourcesDirectory)' env: GITHUB_DISTRO_MIXIN_PASSWORD: $(github-distro-mixin-password) - ADO_CROSSPLATBUILDSCRIPTS_PASSWORD: $(ado-crossplatbuildscripts-password) \ No newline at end of file + ADO_CROSSPLATBUILDSCRIPTS_PASSWORD: $(ado-crossplatbuildscripts-password) + +- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 + displayName: 'Component Detection' + inputs: + failOnAlert: true \ No newline at end of file