mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-10-28 08:35:33 +08:00
fix: upgrade Go to 1.26.10 for CVE-2026-111943 (#7942)
This commit is contained in:
1 parent
4d36f2c524
commit
7d8b91268d
5 files changed
+8
-8
No files matched your search
@@ -39,7 +39,7 @@ jobs:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
with:
|
||||
go-version: '>=1.26'
|
||||
go-version-file: go.mod
|
||||
|
||||
- name: Build frontend
|
||||
env:
|
||||
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
with:
|
||||
go-version: '>=1.26'
|
||||
go-version-file: go.mod
|
||||
- name: Build Backend (amd64)
|
||||
run: |
|
||||
go mod download
|
||||
@@ -98,7 +98,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
with:
|
||||
go-version: '>=1.26'
|
||||
go-version-file: go.mod
|
||||
- name: Build Backend
|
||||
run: |
|
||||
go mod download
|
||||
@@ -149,7 +149,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
||||
with:
|
||||
go-version: '>=1.26'
|
||||
go-version-file: go.mod
|
||||
- name: Build Backend
|
||||
run: |
|
||||
go mod download
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ COPY ./web ./
|
||||
COPY ./VERSION /build/VERSION
|
||||
RUN DISABLE_ESLINT_PLUGIN='true' VITE_REACT_APP_VERSION=$(cat /build/VERSION) bun run build
|
||||
|
||||
FROM golang:1.26.1-alpine@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 AS builder2
|
||||
FROM golang:1.26.10-alpine@sha256:9ce231b28998b32e116927c61aa5c406183061d4f3f2d61b292c88e7f6bdf7ca AS builder2
|
||||
ENV GO111MODULE=on CGO_ENABLED=0 GOWORK=off
|
||||
|
||||
ARG TARGETOS
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# Backend-only build for frontend development
|
||||
# Skips frontend build and uses a placeholder for //go:embed web/dist
|
||||
|
||||
FROM golang:1.26.1-alpine AS builder
|
||||
FROM golang:1.26.10-alpine AS builder
|
||||
|
||||
ENV GO111MODULE=on CGO_ENABLED=0
|
||||
ARG TARGETOS
|
||||
|
||||
Reference in new issue
Block a user