File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
22
33ARG GO_VERSION=1.24
4- ARG GOVULNCHECK_VERSION=v1.1.3
4+ ARG GOVULNCHECK_VERSION=v1.1.4
55ARG FORMAT="text"
66
77FROM golang:${GO_VERSION}-alpine AS base
@@ -18,12 +18,6 @@ RUN --mount=type=bind,target=. <<EOT
1818 set -ex
1919 mkdir /out
2020 govulncheck -format ${FORMAT} ./... | tee /out/govulncheck.out
21- if [ "${FORMAT}" = "sarif" ]; then
22- # Make sure "results" field is defined in SARIF output otherwise GitHub Code Scanning
23- # will fail when uploading report with "Invalid SARIF. Missing 'results' array in run."
24- # Relates to https://github.com/golang/vuln/blob/ffdef74cc44d7eb71931d8d414c478b966812488/internal/sarif/sarif.go#L69
25- jq '(.runs[] | select(.results == null) | .results) |= []' /out/govulncheck.out | tee >(sponge /out/govulncheck.out)
26- fi
2721EOT
2822
2923FROM scratch AS output
You can’t perform that action at this time.
0 commit comments