From cece8a16c06543ed752dd971067d1778b0d6def4 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 28 Apr 2025 15:52:47 -0700 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 10467 (#6544) --- .../pipelines/templates/steps/publish-1es-artifact.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eng/common/pipelines/templates/steps/publish-1es-artifact.yml b/eng/common/pipelines/templates/steps/publish-1es-artifact.yml index 15663cce3..81ade0f1a 100644 --- a/eng/common/pipelines/templates/steps/publish-1es-artifact.yml +++ b/eng/common/pipelines/templates/steps/publish-1es-artifact.yml @@ -31,6 +31,8 @@ steps: inputs: artifactName: '$(PublishArtifactName)' targetPath: '${{ parameters.ArtifactPath }}' - # 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'))) }}: + # Disable sbom generation by default for our public validation builds to avoid unnecessary work + ${{ if eq(variables['System.TeamProject'], 'public') }}: + sbomEnabled: false + ${{ else }}: sbomEnabled: ${{ parameters.SbomEnabled }}