Sync eng/common directory with azure-sdk-tools for PR 17410 (#4046)

Allow callers to configure SBOM generation timeout

Preserve the 30-minute default and pass caller overrides to the 1ES artifact task.

Co-authored-by: jennypng <63012604+JennyPng@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ef492680-d50c-4348-967b-88a98f5c04c1
This commit is contained in:
authored and GitHub committed 2026-10-27 16:20:08 -07:00
1 parent 6147a8cb30
commit 82b76ba338
1 file changed
+3
@@ -6,12 +6,14 @@
# ArtifactPath - The path we will be publishing.
# CustomCondition - Used if there is additional logic necessary to prevent attempt of publish.
# SbomEnabled - Set whether to auto-inject 1es pipeline template sbom tasks
# SbomGenerationTimeoutInMinutes - Budget for each injected SBOM generation task and its runner.
parameters:
ArtifactName: ''
ArtifactPath: ''
CustomCondition: true
SbomEnabled: true
SbomGenerationTimeoutInMinutes: 30
steps:
- pwsh: |
@@ -31,6 +33,7 @@ steps:
inputs:
artifactName: '$(PublishArtifactName)'
targetPath: '${{ parameters.ArtifactPath }}'
sbomGenerationTimeoutInMinutes: ${{ parameters.SbomGenerationTimeoutInMinutes }}
# 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