From 1da25c3d30db99feb079538397474faab4054f75 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Tue, 5 Mar 2024 14:40:20 -0500 Subject: [PATCH] Add sbomEnabled flag to publish template --- .../pipelines/templates/steps/publish-1es-artifact.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eng/common/pipelines/templates/steps/publish-1es-artifact.yml b/eng/common/pipelines/templates/steps/publish-1es-artifact.yml index 66e13ee79277..a8ebae6d738b 100644 --- a/eng/common/pipelines/templates/steps/publish-1es-artifact.yml +++ b/eng/common/pipelines/templates/steps/publish-1es-artifact.yml @@ -5,11 +5,13 @@ # ArtifactName - The name of the artifact in the "successful" case. # ArtifactPath - The path we will be publishing. # CustomCondition - Used if there is additional logic necessary to prevent attempt of publish. +# SbomEnabled - Set whether to auto-inject 1es pipeline template sbom tasks parameters: ArtifactName: '' ArtifactPath: '' CustomCondition: true + SbomEnabled: true steps: - pwsh: | @@ -25,5 +27,6 @@ steps: condition: and(succeededOrFailed(), ${{ parameters.CustomCondition }}) displayName: 'Publish ${{ parameters.ArtifactName }} Artifacts' inputs: - artifact: '$(PublishArtifactName)' - path: '${{ parameters.ArtifactPath }}' + artifactName: '$(PublishArtifactName)' + targetPath: '${{ parameters.ArtifactPath }}' + sbomEnabled: ${{ parameters.SbomEnabled }}