Skip to content

Commit 8869777

Browse files
[WIP] workflow: pass bom.xmls between jobs
1 parent ef80f55 commit 8869777

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/sbom.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)