From 9182ce927637ea8e4c65d73fd3bfdc8db2d24f91 Mon Sep 17 00:00:00 2001 From: Andrey Epifanov Date: Wed, 23 Apr 2025 23:30:02 -0700 Subject: [PATCH] Dockerfile: update golangci-lint to v1.64.5 Signed-off-by: Andrey Epifanov --- Dockerfile | 2 +- hack/validate/golangci-lint.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a8a32095ee..14311d457d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -221,7 +221,7 @@ FROM binary-dummy AS containerd-windows FROM containerd-${TARGETOS} AS containerd FROM base AS golangci_lint -ARG GOLANGCI_LINT_VERSION=v1.59.1 +ARG GOLANGCI_LINT_VERSION=v1.64.5 RUN --mount=type=cache,target=/root/.cache/go-build \ --mount=type=cache,target=/go/pkg/mod \ GOBIN=/build/ GO111MODULE=on go install "github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}" \ diff --git a/hack/validate/golangci-lint.yml b/hack/validate/golangci-lint.yml index 49f199ae2e..06ecddcd52 100644 --- a/hack/validate/golangci-lint.yml +++ b/hack/validate/golangci-lint.yml @@ -37,6 +37,10 @@ linters-settings: # FIXME make sure all packages have a description. Currently, there's many packages without. - name: package-comments disabled: true + gosec: + excludes: + - G115 # G115: integer overflow conversion; (TODO: verify these: https://github.com/moby/moby/issues/48358) + issues: # The default exclusion rules are a bit too permissive, so copying the relevant ones below exclude-use-default: false