Skip to content

Commit

Permalink
Generate SBOMs
Browse files Browse the repository at this point in the history
  • Loading branch information
vpetersson committed Jun 25, 2024
1 parent 964cba9 commit 0ce02bd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Generate SBOMs

on:
push:
branches:
- master
paths:
- 'Cargo.toml'

jobs:
sbom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: psastras/sbom-rs/actions/install-cargo-sbom@cargo-sbom-latest

- name: Run cargo-sbom
run: |
cargo-sbom --output-format=spdx_json_2_3 > sbom.spdx.json
cargo-sbom --output-format=cyclone_dx_json_1_4 > sbom.cyclonedx.json
- name: Upload SPDX SBOM
uses: actions/upload-artifact@v3
with:
name: cli-SPDX
path: sbom.spdx.json

- name: Upload CycloneDX SBOM
uses: actions/upload-artifact@v3
with:
name: cli-CycloneDX
path: sbom.cyclonedx.json

0 comments on commit 0ce02bd

Please sign in to comment.