Skip to content

Commit 608ef1f

Browse files
jkyberneeesclaude
andcommitted
Upgrade Go from 1.24 to 1.26 to fix govulncheck failures
9 stdlib vulnerabilities (crypto/tls, crypto/x509, net, net/http, net/url, os) are fixed in Go 1.25.8–1.25.10. Bumping to 1.26 resolves all of them and aligns CI, go.mod, and Docker builder images. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7476fd1 commit 608ef1f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
2727
with:
28-
go-version: "1.24"
28+
go-version: "1.26"
2929
cache: true
3030

3131
- name: Cache native libraries
@@ -59,7 +59,7 @@ jobs:
5959
- name: govulncheck
6060
uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1
6161
with:
62-
go-version-input: "1.24"
62+
go-version-input: "1.26"
6363
go-package: ./...
6464

6565
test:
@@ -69,7 +69,7 @@ jobs:
6969

7070
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
7171
with:
72-
go-version: "1.24"
72+
go-version: "1.26"
7373
cache: true
7474

7575
- name: Cache native libraries

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# cgo is required: the tokenizer bindings link a static library and ONNX Runtime
55
# is loaded at runtime. A glibc base is required (the prebuilt libtokenizers.a is
66
# a GNU build), so this uses debian-based images rather than Alpine.
7-
FROM golang:1.24-bookworm@sha256:1a6d4452c65dea36aac2e2d606b01b4a029ec90cc1ae53890540ce6173ea77ac AS builder
7+
FROM golang:1.26-bookworm@sha256:483d6e0728a0e58f9e87e01ae9d80ef4181725efc9fadf659d398b3698bd60f7 AS builder
88
WORKDIR /src
99

1010
# Cache module downloads.

examples/http-gateway/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Build context is the repository root:
33
# docker build -f examples/http-gateway/Dockerfile -t piguard-gateway .
44

5-
FROM golang:1.24-bookworm@sha256:1a6d4452c65dea36aac2e2d606b01b4a029ec90cc1ae53890540ce6173ea77ac AS build
5+
FROM golang:1.26-bookworm@sha256:483d6e0728a0e58f9e87e01ae9d80ef4181725efc9fadf659d398b3698bd60f7 AS build
66
WORKDIR /src
77
COPY go.mod go.sum ./
88
RUN go mod download

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/BackendStack21/go-prompt-injection-guard
22

3-
go 1.24.7
3+
go 1.26
44

55
require (
66
github.com/daulet/tokenizers v1.27.0

0 commit comments

Comments
 (0)