Sync eng/common directory with azure-sdk-tools for PR 11039 (#6647)

* Disable SBom generation for pull requests

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Azure SDK Bot 2025-06-30 14:28:13 -07:00 committed by GitHub
parent a14e3d5ee0
commit 9ed14d04f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,8 +31,8 @@ steps:
inputs:
artifactName: '$(PublishArtifactName)'
targetPath: '${{ parameters.ArtifactPath }}'
# Disable sbom generation by default for our public validation builds to avoid unnecessary work
${{ if eq(variables['System.TeamProject'], 'public') }}:
# Disable sbom generation by default for our public or pull request validation builds to avoid unnecessary work
${{ if or(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.Reason'], 'PullRequest')) }}:
sbomEnabled: false
${{ else }}:
sbomEnabled: ${{ parameters.SbomEnabled }}