You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM --platform=${BUILDPLATFORM} ${TOOLCHAIN} AS toolchain
@@ -39,6 +39,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build,id=state-etcd/root/.cache/go
39
39
&& mv /go/bin/golangci-lint /bin/golangci-lint
40
40
RUN --mount=type=cache,target=/root/.cache/go-build,id=state-etcd/root/.cache/go-build --mount=type=cache,target=/go/pkg,id=state-etcd/go/pkg go install golang.org/x/vuln/cmd/govulncheck@latest \
41
41
&& mv /go/bin/govulncheck /bin/govulncheck
42
+
ARG DIS_VULNCHECK_VERSION
43
+
RUN --mount=type=cache,target=/root/.cache/go-build,id=state-etcd/root/.cache/go-build --mount=type=cache,target=/go/pkg,id=state-etcd/go/pkg go install github.com/shanduur/dis-vulncheck@${DIS_VULNCHECK_VERSION} \
44
+
&& mv /go/bin/dis-vulncheck /bin/dis-vulncheck
42
45
ARG GOFUMPT_VERSION
43
46
RUN go install mvdan.cc/gofumpt@${GOFUMPT_VERSION} \
44
47
&& mv /go/bin/gofumpt /bin/gofumpt
@@ -76,8 +79,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build,id=state-etcd/root/.cache/go
RUN --mount=type=cache,target=/root/.cache/go-build,id=state-etcd/root/.cache/go-build --mount=type=cache,target=/go/pkg,id=state-etcd/go/pkg ./hack/govulncheck.sh ./...
82
+
RUN --mount=type=cache,target=/root/.cache/go-build,id=state-etcd/root/.cache/go-build --mount=type=cache,target=/go/pkg,id=state-etcd/go/pkg dis-vulncheck -tool=false ./...
0 commit comments