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:
parent
6d5884a6c0
commit
55f8ea2ba0
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user