Commit fc87a95 1 parent 2693255 commit fc87a95 Copy full SHA for fc87a95
File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 11
11
pull_request :
12
12
13
13
jobs :
14
- # Generate SBOM using cdxgen, but with NPMJS package, not Docker container
15
- sbom-gen :
14
+ # Generate SBOM using syft
15
+ sbom-gen-syft :
16
+ runs-on : ubuntu-22.04
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - run : mkdir -p ~/.local/bin
20
+ - name : Install syft
21
+ run : curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b ~/.local/bin
22
+ - name : Install compliance-assistant
23
+ uses : ./.github/actions/poetrybuild
24
+ - name : Generate SBOM with syft
25
+ run : poetry run compliance-assistant sbom generate -v -g syft -d . -o ${{ runner.temp }}/sbom-raw.json
26
+
27
+ # Generate SBOM using cdxgen (npm package)
28
+ sbom-gen-cdxgen :
16
29
runs-on : ubuntu-22.04
17
30
steps :
18
31
- uses : actions/checkout@v4
29
42
# Enrich the generated SBOM
30
43
sbom-enrich :
31
44
runs-on : ubuntu-22.04
32
- needs : sbom-gen
45
+ needs : sbom-gen-cdxgen
33
46
steps :
34
47
- uses : actions/checkout@v4
35
48
- uses : ./.github/actions/poetrybuild
You can’t perform that action at this time.
0 commit comments