Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 8959 (#2914)
Browse files Browse the repository at this point in the history
* Disable sbom generation for forked PR builds

* Update publish-1es-artifact.yml

---------

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
  • Loading branch information
azure-sdk and weshaggard committed Sep 13, 2024
1 parent d27dbb3 commit 4fc173d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 4fc173d

Please sign in to comment.