Skip to content

Commit aad1252

Browse files
authored
Sync eng/common directory with azure-sdk-tools for PR 10467 (Azure#40768)
1 parent 2c9172e commit aad1252

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ steps:
3131
inputs:
3232
artifactName: '$(PublishArtifactName)'
3333
targetPath: '${{ parameters.ArtifactPath }}'
34-
# Disable sbom generation by default for forked PR builds to avoid a bunch of warnings
35-
${{ if not(and(eq(variables['Build.Reason'],'PullRequest'), eq(variables['System.PullRequest.IsFork'], 'True'))) }}:
34+
# Disable sbom generation by default for our public validation builds to avoid unnecessary work
35+
${{ if eq(variables['System.TeamProject'], 'public') }}:
36+
sbomEnabled: false
37+
${{ else }}:
3638
sbomEnabled: ${{ parameters.SbomEnabled }}

0 commit comments

Comments
 (0)