From 31044171874af7fbf6ded8832b0c0c5608c9eba1 Mon Sep 17 00:00:00 2001 From: Michael Lieberman Date: Thu, 11 Apr 2024 03:18:39 +0000 Subject: [PATCH] Add sbom-generation to github action --- .github/workflows/rust.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d92108c..0a3584a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,4 +24,13 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly - - run: cargo test --verbose \ No newline at end of file + - run: cargo test --verbose + sbom: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - run: | + cargo install cargo-sbom + cargo sbom > skootrs.spdx.json \ No newline at end of file