Skip to content

Commit d371bf9

Browse files
benbpazure-sdk
authored andcommitted
Add sbomEnabled flag to publish template
1 parent 5556e4c commit d371bf9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

eng/common/pipelines/templates/steps/publish-1es-artifact.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
# ArtifactName - The name of the artifact in the "successful" case.
66
# ArtifactPath - The path we will be publishing.
77
# CustomCondition - Used if there is additional logic necessary to prevent attempt of publish.
8+
# SbomEnabled - Set whether to auto-inject 1es pipeline template sbom tasks
89

910
parameters:
1011
ArtifactName: ''
1112
ArtifactPath: ''
1213
CustomCondition: true
14+
SbomEnabled: true
1315

1416
steps:
1517
- pwsh: |
@@ -25,5 +27,6 @@ steps:
2527
condition: and(succeededOrFailed(), ${{ parameters.CustomCondition }})
2628
displayName: 'Publish ${{ parameters.ArtifactName }} Artifacts'
2729
inputs:
28-
artifact: '$(PublishArtifactName)'
29-
path: '${{ parameters.ArtifactPath }}'
30+
artifactName: '$(PublishArtifactName)'
31+
targetPath: '${{ parameters.ArtifactPath }}'
32+
sbomEnabled: ${{ parameters.SbomEnabled }}

0 commit comments

Comments
 (0)