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
54
- name : Upload SBOM artifact
55
55
uses : actions/upload-artifact@v3
56
56
with :
57
57
name : sbom
58
- path : bom.json
58
+ path : sbom.json
59
+ - name : Scan SBOM
60
+ uses : anchore/scan-action@v3
61
+ with :
62
+ sbom : " sbom.json"
63
+ output-format : table
59
64
60
65
bearer :
61
66
name : Bearer
You can’t perform that action at this time.
0 commit comments