|
1 | | -# BuildDropPath - The root folder of the drop directory for which the manifest file will be generated. |
2 | | -# PackageName - The name of the package this SBOM represents. |
3 | | -# PackageVersion - The version of the package this SBOM represents. |
4 | | -# ManifestDirPath - The path of the directory where the generated manifest files will be placed |
5 | | -# IgnoreDirectories - Directories to ignore for SBOM generation. This will be passed through to the CG component detector. |
6 | | - |
7 | 1 | parameters: |
8 | | - PackageVersion: 11.0.0 |
9 | | - BuildDropPath: '$(System.DefaultWorkingDirectory)/artifacts' |
10 | | - PackageName: '.NET' |
11 | | - ManifestDirPath: $(Build.ArtifactStagingDirectory)/sbom |
12 | | - IgnoreDirectories: '' |
13 | | - sbomContinueOnError: true |
14 | | - is1ESPipeline: false |
15 | | - # disable publishArtifacts if some other step is publishing the artifacts (like job.yml). |
16 | | - publishArtifacts: true |
| 2 | + PackageVersion: unused |
| 3 | + BuildDropPath: unused |
| 4 | + PackageName: unused |
| 5 | + ManifestDirPath: unused |
| 6 | + IgnoreDirectories: unused |
| 7 | + sbomContinueOnError: unused |
| 8 | + is1ESPipeline: unused |
| 9 | + publishArtifacts: unused |
17 | 10 |
|
18 | 11 | steps: |
19 | | -- task: PowerShell@2 |
20 | | - displayName: Prep for SBOM generation in (Non-linux) |
21 | | - condition: or(eq(variables['Agent.Os'], 'Windows_NT'), eq(variables['Agent.Os'], 'Darwin')) |
22 | | - inputs: |
23 | | - filePath: ./eng/common/generate-sbom-prep.ps1 |
24 | | - arguments: ${{parameters.manifestDirPath}} |
25 | | - |
26 | | -# Chmodding is a workaround for https://github.com/dotnet/arcade/issues/8461 |
27 | 12 | - script: | |
28 | | - chmod +x ./eng/common/generate-sbom-prep.sh |
29 | | - ./eng/common/generate-sbom-prep.sh ${{parameters.manifestDirPath}} |
30 | | - displayName: Prep for SBOM generation in (Linux) |
31 | | - condition: eq(variables['Agent.Os'], 'Linux') |
32 | | - continueOnError: ${{ parameters.sbomContinueOnError }} |
33 | | - |
34 | | -- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 |
35 | | - displayName: 'Generate SBOM manifest' |
36 | | - continueOnError: ${{ parameters.sbomContinueOnError }} |
37 | | - inputs: |
38 | | - PackageName: ${{ parameters.packageName }} |
39 | | - BuildDropPath: ${{ parameters.buildDropPath }} |
40 | | - PackageVersion: ${{ parameters.packageVersion }} |
41 | | - ManifestDirPath: ${{ parameters.manifestDirPath }}/$(ARTIFACT_NAME) |
42 | | - ${{ if ne(parameters.IgnoreDirectories, '') }}: |
43 | | - AdditionalComponentDetectorArgs: '--IgnoreDirectories ${{ parameters.IgnoreDirectories }}' |
44 | | - |
45 | | -- ${{ if eq(parameters.publishArtifacts, 'true')}}: |
46 | | - - template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml |
47 | | - parameters: |
48 | | - is1ESPipeline: ${{ parameters.is1ESPipeline }} |
49 | | - args: |
50 | | - displayName: Publish SBOM manifest |
51 | | - continueOnError: ${{parameters.sbomContinueOnError}} |
52 | | - targetPath: '${{ parameters.manifestDirPath }}' |
53 | | - artifactName: $(ARTIFACT_NAME) |
54 | | - |
| 13 | + echo "##vso[task.logissue type=warning]Including generate-sbom.yml is deprecated, SBOM generation is handled 1ES PT now. Remove this include." |
| 14 | + displayName: Issue generate-sbom.yml deprecation warning |
0 commit comments