From 668c7acb2ef0b5dfd2588b64cded9df179077072 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 13 Sep 2024 09:20:41 -0700 Subject: [PATCH] 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 --- eng/common/pipelines/templates/steps/publish-1es-artifact.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eng/common/pipelines/templates/steps/publish-1es-artifact.yml b/eng/common/pipelines/templates/steps/publish-1es-artifact.yml index a875f052d..15663cce3 100644 --- a/eng/common/pipelines/templates/steps/publish-1es-artifact.yml +++ b/eng/common/pipelines/templates/steps/publish-1es-artifact.yml @@ -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 }}