Skip to content

Commit 07d4126

Browse files
authored
Merge pull request #180 from aws/fix/cve-go-stdlib-1.26.2
Update Go version to 1.26.2 to fix security vulnerabilities
2 parents 3621747 + 9a4c034 commit 07d4126

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

docker_image_resources/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ FROM --platform=$TARGETPLATFORM public.ecr.aws/amazonlinux/amazonlinux:2023.9.20
55
# Add build arguments
66
ARG TARGETARCH
77
ARG VERSION
8+
ARG GO_VERSION=1.26.2
89

910
# Install build dependencies
1011
RUN dnf install -y \
@@ -17,10 +18,10 @@ ENV GOPATH=/root/go \
1718
HOME=/root
1819

1920
RUN mkdir -p /root/go/bin && \
20-
go install golang.org/dl/go1.26.1@latest && \
21-
go1.26.1 download && \
21+
go install golang.org/dl/go${GO_VERSION}@latest && \
22+
go${GO_VERSION} download && \
2223
rm -rf /usr/local/go && \
23-
ln -s /root/sdk/go1.26.1 /usr/local/go
24+
ln -s /root/sdk/go${GO_VERSION} /usr/local/go
2425

2526
ENV GOROOT=/usr/local/go \
2627
PATH=/usr/local/go/bin:/root/go/bin:$PATH

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/aws/rolesanywhere-credential-helper
22

33
go 1.26.0
44

5-
toolchain go1.26.1
5+
toolchain go1.26.2
66

77
require (
88
github.com/aws/aws-sdk-go-v2 v1.40.0

0 commit comments

Comments
 (0)