diff --git a/.vsts-ci/windows/templates/windows-packaging.yml b/.vsts-ci/windows/templates/windows-packaging.yml index 90655ee6298..3961214c86f 100644 --- a/.vsts-ci/windows/templates/windows-packaging.yml +++ b/.vsts-ci/windows/templates/windows-packaging.yml @@ -70,6 +70,7 @@ jobs: Build_Repository_Uri: $(build.repository.uri) displayName: SBOM sourceScanPath: '$(repoPath)\tools' + signSBOM: false # This is needed as SBOM task removed the installed .NET and installs .NET 3.1 - pwsh: | @@ -79,6 +80,18 @@ jobs: condition: succeeded() workingDirectory: $(repoPath) + - pwsh: | + $manifestFolder = Join-Path -Path '$(System.ArtifactsDirectory)/mainBuild' -ChildPath '_manifest' + + if (-not (Test-Path $manifestFolder)) { + throw "_manifest folder does not exist under $(System.ArtifactsDirectory)/mainBuild" + } + + $null = New-Item -Path "$manifestFolder/spdx_2.2/bsi.json" -Verbose -Force + $null = New-Item -Path "$manifestFolder/spdx_2.2/manifest.cat" -Verbose -Force + + displayName: Create fake SBOM manifest signed files + - pwsh: | Import-Module .\tools\ci.psm1 New-CodeCoverageAndTestPackage