Merge pull request #314 from dotnet/dev/bond/sbom

Software Bill of Materials (SBOM) manifest generation
This commit is contained in:
Jonathan Dick 2022-02-15 13:55:05 -05:00 коммит произвёл GitHub
Родитель 1b5fcb6a57 850d64c3a0
Коммит c15cc9cf97
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 17 добавлений и 1 удалений

Просмотреть файл

@ -6,6 +6,7 @@ variables:
provisionator.path: '$(System.DefaultWorkingDirectory)/eng/provisioning/provisioning.csx'
provisionator.vs: '$(System.DefaultWorkingDirectory)/eng/provisioning/vs.csx'
provisionator.extraArguments: '--v'
signingCondition: and(succeeded(), or(eq(variables['Sign'], 'true'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), or(startsWith(variables['Build.SourceBranch'],'refs/tags/'), startsWith(variables['Build.SourceBranch'],'refs/heads/release/') ))))
parameters:
- name: BuildConfigurations
@ -196,4 +197,19 @@ stages:
signedArtifactName: nuget
signedArtifactPath: signed
displayName: Sign Phase
condition: and(succeeded(), or(eq(variables['Sign'], 'true'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), or(startsWith(variables['Build.SourceBranch'],'refs/tags/'), startsWith(variables['Build.SourceBranch'],'refs/heads/release/') ))))
condition: ${{ variables['signingCondition'] }}
- stage: sbom
displayName: 'Software Bill of Materials'
${{ if not(variables['signingCondition']) }}:
dependsOn: [ 'windows' ]
${{ if variables['signingCondition'] }}:
dependsOn: [ 'nuget_signing' ]
jobs:
- template: compliance/sbom/job.v1.yml@internal-templates
parameters:
artifactNames: ['nuget']
${{ if variables['signingCondition'] }}:
artifactMap: ['nuget/signed']
packageName: 'Microsoft Maui Graphics'
packageFilter: '*.nupkg'