diff --git a/eng/common/core-templates/steps/publish-logs.yml b/eng/common/core-templates/steps/publish-logs.yml index a9ea99ba6aa..5b77623ca40 100644 --- a/eng/common/core-templates/steps/publish-logs.yml +++ b/eng/common/core-templates/steps/publish-logs.yml @@ -60,3 +60,4 @@ steps: artifactName: PostBuildLogs continueOnError: true condition: always() + sbomEnabled: false diff --git a/eng/common/templates-official/steps/publish-build-artifacts.yml b/eng/common/templates-official/steps/publish-build-artifacts.yml index fcf6637b2eb..d179aa5be45 100644 --- a/eng/common/templates-official/steps/publish-build-artifacts.yml +++ b/eng/common/templates-official/steps/publish-build-artifacts.yml @@ -28,6 +28,10 @@ parameters: - name: retryCountOnTaskFailure type: string default: 10 + +- name: sbomEnabled + type: string + default: '' steps: - ${{ if ne(parameters.is1ESPipeline, true) }}: @@ -44,3 +48,5 @@ steps: ArtifactName: ${{ parameters.artifactName }} ${{ if parameters.retryCountOnTaskFailure }}: retryCountOnTaskFailure: ${{ parameters.retryCountOnTaskFailure }} + ${{ if ne(parameters.sbomEnabled, '') }}: + sbomEnabled: ${{ parameters.sbomEnabled }}