Skip to content

Commit 4c45ee4

Browse files
committedSep 16, 2024·
feat: scan for vulnerabilities
1 parent 514c1f2 commit 4c45ee4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
 

‎.github/workflows/ci.yml

+18
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,21 @@ jobs:
4545
IFS=$'\n'; for file in $files; do
4646
rustfmt --check "$file"
4747
done
48+
49+
scan-for-vulnerabilities:
50+
name: Scan for Vulnerabilities
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: DeterminateSystems/nix-installer-action@da36cb69b1c3247ad7a1f931ebfd954a1105ef14 # v14
55+
- run: |
56+
nix profile install .#
57+
nix2sbom -f spdx .# > spdx.json
58+
59+
- name: Scan SBOM
60+
uses: anchore/scan-action@v4
61+
with:
62+
sbom: "spdx.json"
63+
output-format: json
64+
severity-cutoff: medium
65+
add-cpes-if-none: true

0 commit comments

Comments
 (0)
Please sign in to comment.