Skip to content

Commit d7e87f2

Browse files
azure-sdkweshaggardCopilot
authored
Sync eng/common directory with azure-sdk-tools for PR 11039 (#2742)
* 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>
1 parent 5376989 commit d7e87f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ steps:
3131
inputs:
3232
artifactName: '$(PublishArtifactName)'
3333
targetPath: '${{ parameters.ArtifactPath }}'
34-
# Disable sbom generation by default for our public validation builds to avoid unnecessary work
35-
${{ if eq(variables['System.TeamProject'], 'public') }}:
34+
# Disable sbom generation by default for our public or pull request validation builds to avoid unnecessary work
35+
${{ if or(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.Reason'], 'PullRequest')) }}:
3636
sbomEnabled: false
3737
${{ else }}:
3838
sbomEnabled: ${{ parameters.SbomEnabled }}

0 commit comments

Comments
 (0)