Skip to content

Commit 40a787e

Browse files
committed
fix: scan with grype
1 parent 7e8b5c0 commit 40a787e

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/build_and_push.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ jobs:
4949
if-no-files-found: error
5050
retention-days: 14
5151
# 🛡 Evaluate SBOM with Grype (fail build on HIGH or CRITICAL vulns)
52-
# - name: 🛡 Vulnerability scan (Grype on SBOM)
53-
# run: |
54-
# docker run --rm \
55-
# -v "$PWD":/work \
56-
# anchore/grype:latest /work/sbom.syft.json \
57-
# --fail-on high \
58-
# --only-fixed=false \
59-
# --add-cpes-if-none
60-
61-
- name: Scan SBOM
62-
uses: anchore/scan-action@v6
63-
with:
64-
sbom: sbom.syft.json
52+
- name: 🛡 Vulnerability scan (Grype on SBOM)
53+
run: |
54+
docker run --rm \
55+
-v "$PWD":/work \
56+
anchore/grype:v0.104.1 /work/sbom.syft.json \
57+
--fail-on high \
58+
--only-fixed=false \
59+
--add-cpes-if-none
60+
61+
# - name: Scan SBOM
62+
# uses: anchore/scan-action@v6
63+
# with:
64+
# sbom: sbom.syft.json
6565

6666
- name: 🔑 Login to Quay.io
6767
run: |

0 commit comments

Comments
 (0)