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 33ARG GO_VERSION=1.24
44ARG ALPINE_VERSION=3.21
55
6- ARG GOVULNCHECK_VERSION=v1.1.3
6+ ARG GOVULNCHECK_VERSION=v1.1.4
77ARG FORMAT="text"
88
99FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base
@@ -20,12 +20,6 @@ RUN --mount=type=bind,target=. <<EOT
2020 set -ex
2121 mkdir /out
2222 govulncheck -format ${FORMAT} ./... | tee /out/govulncheck.out
23- if [ "${FORMAT}" = "sarif" ]; then
24- # Make sure "results" field is defined in SARIF output otherwise GitHub Code Scanning
25- # will fail when uploading report with "Invalid SARIF. Missing 'results' array in run."
26- # Relates to https://github.com/golang/vuln/blob/ffdef74cc44d7eb71931d8d414c478b966812488/internal/sarif/sarif.go#L69
27- jq '(.runs[] | select(.results == null) | .results) |= []' /out/govulncheck.out | tee >(sponge /out/govulncheck.out)
28- fi
2923EOT
3024
3125FROM scratch AS output
You can’t perform that action at this time.
0 commit comments