Skip to content

Commit 8d521d1

Browse files
committed
Add automatic SBOM check
1 parent d2907c8 commit 8d521d1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

windows-release/stage-layout-embed.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ jobs:
6565
git -C "$(Pipeline.Workspace)\release-tools" checkout $(Build.SourceVersion)
6666
displayName: 'Clone the python/release-tools repository'
6767
68+
- powershell: |
69+
if (-not (Test-Path "$(Build.SourcesDirectory)\Misc\externals.spdx.json")) {
70+
"externals.spdx.json is missing - skipping SBOM"
71+
Write-Host "##vso[task.setvariable variable=SkipSBOM]1"
72+
}
73+
condition: and(succeeded(), not(variables['SkipSBOM']))
74+
displayName: 'Checking for SBOM'
75+
6876
- powershell: >
6977
& "$(Python)"
7078
"$(Pipeline.Workspace)\release-tools\sbom.py"

0 commit comments

Comments
 (0)