Sync eng/common directory with azure-sdk-tools for PR 8959 (#5982)

* Disable sbom generation for forked PR builds

* Update publish-1es-artifact.yml

---------

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
This commit is contained in:
Azure SDK Bot 2024-09-13 09:20:41 -07:00 committed by GitHub
parent f00f07dfe0
commit 668c7acb2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,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 }}