File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -56,19 +56,41 @@ jobs:
5656 with :
5757 output : ' ./bom.npm.xml'
5858
59+ # Pass BOMs to next Job
60+ # https://github.com/actions/upload-artifact
61+ - name : Store partial BOMs
62+ uses : actions/upload-artifact@v4
63+ with :
64+ name : bom-partials
65+ path : bom.*.xml
66+
5967 merge-sboms :
6068 needs : generate-sbom
6169 runs-on : ubuntu-latest
6270
6371 # https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/running-jobs-in-a-container
6472 container :
6573 image : cyclonedx/cyclonedx-cli:0.27.1
74+
6675 steps :
76+ - name : Download partial BOMs
77+ uses : actions/download-artifact@v4
78+ with :
79+ name : bom-partials
80+
6781 - name : Merge SBOMs
6882 # https://github.com/CycloneDX/cyclonedx-cli#merge-command
6983 run : |
7084 cyclonedx merge --input-files bom.composer.xml bom.npm.xml --output-file bom.xml
7185
86+ # Pass merged BOM to next Job
87+ # https://github.com/actions/upload-artifact
88+ - name : Store merged BOM
89+ uses : actions/upload-artifact@v4
90+ with :
91+ name : final-bom
92+ path : bom.xml
93+
7294 upload-sboms :
7395 needs : merge-sboms
7496 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments