From 4a47e07f2af35a3a23683a1ee1707837da1d321a Mon Sep 17 00:00:00 2001 From: Qingchuan Hao Date: Fri, 9 Sep 2022 06:38:34 +0000 Subject: [PATCH] auto-trigger cg detection on go module change in main branch --- .pipeline/component-governance-detection.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.pipeline/component-governance-detection.yaml b/.pipeline/component-governance-detection.yaml index 3c2f87a4c..b2eac6127 100644 --- a/.pipeline/component-governance-detection.yaml +++ b/.pipeline/component-governance-detection.yaml @@ -1,6 +1,13 @@ # This pipeline hosted in ADO will use the auto-injected component detection build task to detect possible incidents # and report alerts related to OSS consumed by this repository. -trigger: none +trigger: + branches: + include: + - main + paths: + include: + - go.sum + - go.mod pool: vmImage: ubuntu-18.04