From 4b80a98d36f788b0db7ed52f0dcd66470a15dee7 Mon Sep 17 00:00:00 2001 From: Matthias Bertschy Date: Wed, 21 Aug 2024 14:29:13 +0200 Subject: [PATCH] update to go 1.23 and base image to debian12 Signed-off-by: Matthias Bertschy --- .github/workflows/pr-created.yaml | 2 +- .github/workflows/pr-merged.yaml | 2 +- build/Dockerfile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-created.yaml b/.github/workflows/pr-created.yaml index d1bdea6..f6ebb8c 100644 --- a/.github/workflows/pr-created.yaml +++ b/.github/workflows/pr-created.yaml @@ -20,5 +20,5 @@ jobs: uses: kubescape/workflows/.github/workflows/incluster-comp-pr-created.yaml@main with: CGO_ENABLED: 0 - GO_VERSION: "1.22" + GO_VERSION: "1.23" secrets: inherit diff --git a/.github/workflows/pr-merged.yaml b/.github/workflows/pr-merged.yaml index 21b3fa5..804b4ae 100644 --- a/.github/workflows/pr-merged.yaml +++ b/.github/workflows/pr-merged.yaml @@ -44,7 +44,7 @@ jobs: CGO_ENABLED: 0 GO111MODULE: "on" BUILD_PLATFORM: linux/amd64,linux/arm64 - GO_VERSION: "1.22" + GO_VERSION: "1.23" REQUIRED_TESTS: '[ # "vuln_scan", # "vuln_scan_cve_exceptions", diff --git a/build/Dockerfile b/build/Dockerfile index 1a4a799..e37ce1f 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM golang:1.22-bullseye as builder +FROM --platform=$BUILDPLATFORM golang:1.23-bookworm AS builder ENV GO111MODULE=on CGO_ENABLED=0 WORKDIR /work @@ -9,7 +9,7 @@ RUN --mount=target=. \ --mount=type=cache,target=/go/pkg \ GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /out/kubevuln cmd/http/main.go -FROM gcr.io/distroless/static-debian11:nonroot +FROM gcr.io/distroless/static-debian12:nonroot USER nonroot WORKDIR /home/nonroot/