Skip to content

Commit d3e3a4e

Browse files
chore: update Go to 1.26.5
Go 1.26.5 fixes CVE-2026-39822 (os: root escape via symlink plus trailing slash on Unix) and CVE-2026-42505 (crypto/tls), both of which are flagged by image scans against binaries built with Go 1.26.4. Updates the Go version in mise.toml (which CI derives its Go version from), go.mod, lib/go.mod, dev/vendor-lib.sh, and the Dockerfile builder image. The golang:1.26.5 Alpine image is only published on Alpine 3.23, so the builder stage moves from alpine3.22 to alpine3.23; the runtime stage is unchanged. ## Test Plan - go build ./cmd/src - go test ./... passes with Go 1.26.5
1 parent 747e920 commit d3e3a4e

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Nothing fancy here: we copy in the source code and build on the Alpine Go
66
# image. Refer to .dockerignore to get a sense of what we're not going to copy.
7-
FROM golang:1.26.4-alpine3.22@sha256:727cfc3c40be55cd1bc9a4a059406b28a059857e3be752aa9d09531e12c20c56 AS builder
7+
FROM golang:1.26.5-alpine3.23@sha256:622e56dbc11a8cfe87cafa2331e9a201877271cbff918af53d3be315f3da88cc AS builder
88

99
COPY . /src
1010
WORKDIR /src

dev/vendor-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ echo "Creating go.mod file..."
136136
cat > "$DEST_LIB/go.mod" <<EOF
137137
module github.com/sourcegraph/sourcegraph/lib
138138
139-
go 1.26.4
139+
go 1.26.5
140140
EOF
141141

142142
# Create README.md

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/sourcegraph/src-cli
22

3-
go 1.26.4
3+
go 1.26.5
44

55
require (
66
cloud.google.com/go/storage v1.50.0

lib/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/sourcegraph/sourcegraph/lib
22

3-
go 1.26.4
3+
go 1.26.5
44

55
require (
66
github.com/Masterminds/semver v1.5.0

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[tools]
2-
golang = "1.26.4"
2+
golang = "1.26.5"
33
shfmt = "3.8.0"
44
shellcheck = "0.10.0"

0 commit comments

Comments
 (0)