Sync eng/common directory with azure-sdk-tools for PR 10467 (#6544)

This commit is contained in:
Azure SDK Bot 2025-04-28 15:52:47 -07:00 committed by GitHub
parent 9ae114d856
commit cece8a16c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,6 +31,8 @@ steps:
inputs:
artifactName: '$(PublishArtifactName)'
targetPath: '${{ parameters.ArtifactPath }}'
# 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'))) }}:
# Disable sbom generation by default for our public validation builds to avoid unnecessary work
${{ if eq(variables['System.TeamProject'], 'public') }}:
sbomEnabled: false
${{ else }}:
sbomEnabled: ${{ parameters.SbomEnabled }}