From 55f8ea2ba046ab8a664c9046bf08152d17b78f83 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:28:13 -0700 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 11039 (#6647) * 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 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- eng/common/pipelines/templates/steps/publish-1es-artifact.yml | 4 ++-- 1 file changed, 2 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 81ade0f1a..30d38828e 100644 --- a/eng/common/pipelines/templates/steps/publish-1es-artifact.yml +++ b/eng/common/pipelines/templates/steps/publish-1es-artifact.yml @@ -31,8 +31,8 @@ steps: inputs: artifactName: '$(PublishArtifactName)' targetPath: '${{ parameters.ArtifactPath }}' - # Disable sbom generation by default for our public validation builds to avoid unnecessary work - ${{ if eq(variables['System.TeamProject'], 'public') }}: + # Disable sbom generation by default for our public or pull request validation builds to avoid unnecessary work + ${{ if or(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.Reason'], 'PullRequest')) }}: sbomEnabled: false ${{ else }}: sbomEnabled: ${{ parameters.SbomEnabled }}