Skip to content

Commit fba5d5e

Browse files
authored
Merge pull request #3265 from crazy-max/update-govulncheck
dockerfile: update govulncheck to v1.1.4
2 parents 4c1e7b2 + 2d3a9ef commit fba5d5e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

hack/dockerfiles/govulncheck.Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ARG GO_VERSION=1.24
44
ARG ALPINE_VERSION=3.21
55

6-
ARG GOVULNCHECK_VERSION=v1.1.3
6+
ARG GOVULNCHECK_VERSION=v1.1.4
77
ARG FORMAT="text"
88

99
FROM 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
2923
EOT
3024

3125
FROM scratch AS output

0 commit comments

Comments
 (0)