Try to fix the error of docker vulnerability check error

This commit is contained in:
2020-11-25 16:05:35 +11:00
parent f12066c0fa
commit 8bab5e7280
+3 -1
View File
@@ -8,8 +8,10 @@ jobs:
- name: Build the Docker image
run: docker build . --file Dockerfile --tag local/aria-ui:latest
- name: Scan image
uses: anchore/scan-action@v1
uses: anchore/scan-action@v2
with:
image-reference: "local/aria-ui:latest"
fail-build: true
severity-cutoff: high
- name: grype scan JSON results
run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done