Skip to content

Commit

Permalink
Update publish-1es-artifact.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard authored and azure-sdk committed Sep 12, 2024
1 parent 4d4ebae commit 59b3961
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions eng/common/pipelines/templates/steps/publish-1es-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ parameters:
ArtifactName: ''
ArtifactPath: ''
CustomCondition: true
# Disable sbom generation by default for forked PR builds to avoid a bunch of warnings
${{ if and(eq(variables['Build.Reason'],'PullRequest'), eq(variables['System.PullRequest.IsFork'], 'True')) }}:
SbomEnabled: false
${{ else }}:
SbonEnabled: true
SbomEnabled: true

steps:
- pwsh: |
Expand All @@ -35,4 +31,6 @@ steps:
inputs:
artifactName: '$(PublishArtifactName)'
targetPath: '${{ parameters.ArtifactPath }}'
sbomEnabled: ${{ parameters.SbomEnabled }}
# Disable sbom generation by default for forked PR builds to avoid a bunch of warnings
${{ if not(and(eq(variables['Build.Reason'],'PullRequest'), eq(variables['System.PullRequest.IsFork'], 'True'))) }}:
sbomEnabled: ${{ parameters.SbomEnabled }}

0 comments on commit 59b3961

Please sign in to comment.