Skip to content

Commit

Permalink
[WIP] sbom: merge SBOMs
Browse files Browse the repository at this point in the history
  • Loading branch information
thlehmann-ionos committed Nov 4, 2024
1 parent 26e6bac commit 66d7e00
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/sbom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,27 @@ jobs:
with:
output: './bom.npm.xml'

# TODO: merge BOMs, upload BOMs
merge-sboms:
runs-on: ubuntu-latest

# https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/running-jobs-in-a-container
container:
image: cyclonedx/cyclonedx-cli:0.27.1
steps:
- name: Check for dockerenv file
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)

- name: Merge SBOMs
# https://github.com/CycloneDX/cyclonedx-cli#merge-command
run: |
cyclonedx merge --input-files bom.composer.xml bom.npm.xml --output-file bom.xml
upload-sboms:
runs-on: ubuntu-latest

steps:
- name: Dump merged SBOM
run: |
cat bom.xml
# TODO: upload BOMs

0 comments on commit 66d7e00

Please sign in to comment.