From 6ff2e5e32bc289f2683646b7f712a8670b49a659 Mon Sep 17 00:00:00 2001 From: Igor Velikorossov Date: Fri, 25 Feb 2022 13:46:22 +1100 Subject: [PATCH] Generate SBOM manifest Relates to https://github.com/dotnet/arcade/issues/8477 --- eng/pipelines/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eng/pipelines/build.yml b/eng/pipelines/build.yml index f4b25643f85..61c5ee9f9c9 100644 --- a/eng/pipelines/build.yml +++ b/eng/pipelines/build.yml @@ -129,6 +129,12 @@ jobs: displayName: Upload coverage to codecov.io condition: and(succeeded(), eq(variables._Coverage, 'true')) + # Generate SBOM for the internal leg only + - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: + - template: ..\common\templates\steps\generate-sbom.yml + parameters: + name: Generate_SBOM_${{ parameters.name }} + - template: post-build.yml parameters: name: ${{ parameters.name }}