File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -49,32 +49,3 @@ steps:
4949 ArtifactName : ' drop'
5050 publishLocation : ' Container'
5151
52- # Generate/upload SBOM with cdxgen
53- - script : |
54- cd $(Build.SourcesDirectory)
55- npm install --global @cyclonedx/cdxgen
56- displayName : ' Install cdxgen'
57-
58- - script : |
59- mkdir -p $(Build.ArtifactStagingDirectory)/bom
60- cd $(Build.SourcesDirectory)
61- cdxgen --recurse \
62- --output $(Build.ArtifactStagingDirectory)/bom/bom.json \
63- --json-pretty \
64- --project-group '$(productGroup)' \
65- --project-name '$(projectName)' \
66- --project-version '$(productVersion)' \
67- --server-url '$(DT_BASE_URL)' \
68- --api-key '$(DT_API_KEY)'
69- displayName : ' Generate & Upload SBOM with cdxgen'
70- env :
71- DT_API_KEY : $(DT_API_KEY)
72- DT_BASE_URL : $(DT_BASE_URL)
73-
74- # Publish SBOM artifact
75- - task : PublishPipelineArtifact@1
76- displayName : ' Publish SBOM Artifact'
77- inputs :
78- targetPath : $(Build.ArtifactStagingDirectory)/bom
79- artifactName : SBOM
80-
You can’t perform that action at this time.
0 commit comments