Skip to content

Commit 4f784f6

Browse files
committed
ci: fix to use json format
1 parent 0079bd4 commit 4f784f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/scan-images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ jobs:
3838
# v1.19.1-debian-amd64
3939
IMAGE=$(make echo-all-images | cut -d' ' -f1|cut -d',' -f3)
4040
echo "# Scan Fluentd image with grype (filter)" >> $GITHUB_STEP_SUMMARY
41-
docker run --rm anchore/grype:latest fluent/fluentd:$IMAGE --ignore-states wont-fix | jq -r '
41+
docker run --rm anchore/grype:latest fluent/fluentd:$IMAGE --ignore-states wont-fix --output json | jq -r '
4242
(["NAME","INSTALLED","FIXED IN","TYPE","VULNERABILITY","SEVERITY"] | join(" | ") | "| " + . + " |"),
4343
(["---","---","---","---","---","---"] | join(" | ") | "| " + . + " |"),
4444
(.matches[]
4545
| select(.vulnerability.severity != "Negligible")
4646
| "| \(.artifact.name) | \(.artifact.version) | \(.vulnerability.fix.versions[0] // "") | \(.artifact.type) | \(.vulnerability.id) | \(.vulnerability.severity)|")
4747
' >> $GITHUB_STEP_SUMMARY
4848
echo "# Scan Fluentd image with grype (details)" >> $GITHUB_STEP_SUMMARY
49-
docker run --rm anchore/grype:latest fluent/fluentd:$IMAGE | jq -r '
49+
docker run --rm anchore/grype:latest fluent/fluentd:$IMAGE --output json | jq -r '
5050
(["NAME","INSTALLED","FIXED IN","TYPE","VULNERABILITY","SEVERITY"] | join(" | ") | "| " + . + " |"),
5151
(["---","---","---","---","---","---"] | join(" | ") | "| " + . + " |"),
5252
(.matches[]

0 commit comments

Comments
 (0)