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:
parent
f00f07dfe0
commit
668c7acb2e
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user