From 9f5722f185d72a57cacd56285b38280c68026ee2 Mon Sep 17 00:00:00 2001 From: snskarora Date: Sat, 27 Jun 2026 19:43:06 +0530 Subject: [PATCH 1/3] Modernizing to go 1.25 --- go.mod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 2f1fd03..4ca8ccd 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/trstringer/manual-approval -go 1.24.0 +go 1.25.0 require ( github.com/google/go-github/v43 v43.0.0 @@ -9,5 +9,5 @@ require ( require ( github.com/google/go-querystring v1.1.0 // indirect - golang.org/x/crypto v0.45.0 // indirect + golang.org/x/crypto v0.53.0 // indirect ) From 6e1700a98b2f35c0372a039af8a8781cb8d01fef Mon Sep 17 00:00:00 2001 From: Sunny <55059942+snskArora@users.noreply.github.com> Date: Sat, 27 Jun 2026 19:59:22 +0530 Subject: [PATCH 2/3] Upgrade Go image to 1.25 and adjust Dockerfile Updated Go base image to version 1.25 and removed image digest pinning for multi-architecture support. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4581be0..c94e8c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ -FROM golang:1.24@sha256:d2d2bc1c84f7e60d7d2438a3836ae7d0c847f4888464e7ec9ba3a1339a1ee804 AS builder +# not pinning the exact image digest to support multiple architecture builds without multiple Dockerfiles + +FROM golang:1.25 AS builder COPY . /var/app WORKDIR /var/app RUN go mod tidy RUN CGO_ENABLED=0 go build -o app . -FROM alpine:3.23@sha256:fd791d74b68913cbb027c6546007b3f0d3bc45125f797758156952bc2d6daf40 +FROM alpine:3.23 LABEL org.opencontainers.image.source=https://github.com/trstringer/manual-approval RUN apk update && apk add ca-certificates COPY --from=builder /var/app/app /var/app/app From d339c9e31a2f0185d920b3efcab0012afcd7fb87 Mon Sep 17 00:00:00 2001 From: Sunny <55059942+snskArora@users.noreply.github.com> Date: Sat, 27 Jun 2026 20:05:17 +0530 Subject: [PATCH 3/3] Update golangci-lint version in Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 420c847..a18f0e4 100644 --- a/Makefile +++ b/Makefile @@ -30,4 +30,4 @@ test: .PHONY: lint lint: - docker run --rm -v $$(pwd):/app -w /app golangci/golangci-lint:v2.1.6 golangci-lint run -v + docker run --rm -v $$(pwd):/app -w /app golangci/golangci-lint:v2.10.1 golangci-lint run -v