From 4ed0ca490216792b1acd7dfcbad7770132ddc8d7 Mon Sep 17 00:00:00 2001 From: Richard Gomez <32133502+rgmz@users.noreply.github.com> Date: Thu, 20 Nov 2025 08:29:50 -0500 Subject: [PATCH] build: upgrade Go & alpine version (#1989) Co-authored-by: Michel Tu Co-authored-by: Jiri Stary <72435227+Jiri-Stary@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- Dockerfile | 4 ++-- go.mod | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49ffaf50..9a9fac39 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.23 + go-version: 1.25 - name: Build run: go build ./... diff --git a/Dockerfile b/Dockerfile index 761f3897..55651086 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM golang:1.23 AS build +FROM golang:1.25 AS build WORKDIR /go/src/github.com/zricethezav/gitleaks COPY . . RUN VERSION=$(git describe --tags --abbrev=0) && \ CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X=github.com/zricethezav/gitleaks/v8/version.Version=${VERSION}" -FROM alpine:3.19 +FROM alpine:3.22 RUN apk add --no-cache bash git openssh-client COPY --from=build /go/src/github.com/zricethezav/gitleaks/bin/* /usr/bin/ diff --git a/go.mod b/go.mod index 962f2d4f..c19c9d23 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/zricethezav/gitleaks/v8 -go 1.23.8 +go 1.25.4 require ( github.com/BobuSumisu/aho-corasick v1.0.3