Disable SBOM signing for CI and add extra files for packaging tests (#19729)

This commit is contained in:
Aditya Patwardhan
2023-06-01 16:13:55 -07:00
committed by GitHub
parent 31dd6483b2
commit ef3e63dc89
@@ -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