Skip to content

Commit 58bdd75

Browse files
Sync eng/common directory with azure-sdk-tools for PR 8959 (#37359)
* Disable sbom generation for forked PR builds * Update publish-1es-artifact.yml --------- Co-authored-by: Wes Haggard <[email protected]>
1 parent 1ca2ffc commit 58bdd75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ steps:
3131
inputs:
3232
artifactName: '$(PublishArtifactName)'
3333
targetPath: '${{ parameters.ArtifactPath }}'
34-
sbomEnabled: ${{ parameters.SbomEnabled }}
34+
# Disable sbom generation by default for forked PR builds to avoid a bunch of warnings
35+
${{ if not(and(eq(variables['Build.Reason'],'PullRequest'), eq(variables['System.PullRequest.IsFork'], 'True'))) }}:
36+
sbomEnabled: ${{ parameters.SbomEnabled }}

0 commit comments

Comments
 (0)