File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -41,21 +41,26 @@ jobs:
41
41
image : " localbuild/todo-app:v1"
42
42
output-format : table
43
43
44
- generate -sbom :
45
- name : Generate SBOM
44
+ grype -sbom :
45
+ name : Grype SBOM
46
46
runs-on : ubuntu-latest
47
47
steps :
48
48
- name : Checkout source code
49
49
uses : actions/checkout@v4
50
- - name : Download CycloneDX CLI
51
- run : |
52
- npm install --global @cyclonedx/cyclonedx-npm
53
- npx @cyclonedx/cyclonedx-npm --output-file bom.json
50
+ - name : Install CycloneDX CLI
51
+ run : npm install --global @cyclonedx/cyclonedx-npm
52
+ - name : Generate SBOM file
53
+ run : npx @cyclonedx/cyclonedx-npm --output-file sbom.json
54
+ - name : Scan SBOM
55
+ uses : anchore/scan-action@v3
56
+ with :
57
+ sbom : " sbom.json"
58
+ output-format : table
54
59
- name : Upload SBOM artifact
55
60
uses : actions/upload-artifact@v3
56
61
with :
57
62
name : sbom
58
- path : bom .json
63
+ path : sbom .json
59
64
60
65
bearer :
61
66
name : Bearer
You can’t perform that action at this time.
0 commit comments