Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(ci): require Go 1.26.9 security patches (#9143)

Bohan Jiange5d4acfaefa4
diff --git a/.github/RELEASING.md b/.github/RELEASING.md
index 7840adcd20..e46742293e 100644
--- a/.github/RELEASING.md
+++ b/.github/RELEASING.md
@@ -10,6 +10,14 @@ formulae, and container images.
The verification job runs the Go tests and `govulncheck` before any publishing
job starts. The vulnerability scan is fail-closed by default.
+CI and release jobs require Go `~1.26.9`: at least 1.26.9, while accepting
+newer 1.26 patches. This security floor is independent of the development
+minimum in `server/go.mod`. A plain `1.26.x` can resolve to an older patch
+while the `setup-go` version manifest catches up with an official Go release.
+When raising the security floor, update all Go workflows and the pinned
+Go builder image in `Dockerfile` together so shipped binaries also receive
+the fixes.
+
## Emergency vulnerability-scan bypass
Use the bypass only when `govulncheck` itself or its live vulnerability database
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1c959524e3..a77d1c4c9e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -72,7 +72,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
- go-version: "1.26.x"
+ go-version: "~1.26.9"
check-latest: true
cache-dependency-path: server/go.sum
@@ -348,9 +348,9 @@ jobs:
id: go
uses: actions/setup-go@v5
with:
- # Deliberately independent from the minimum patch in server/go.mod:
- # CI follows the newest 1.26 patch available to setup-go.
- go-version: "1.26.x"
+ # Keep the security floor even when the setup-go manifest lags;
+ # continue accepting newer patches within Go 1.26.
+ go-version: "~1.26.9"
check-latest: true
cache: false
@@ -450,7 +450,7 @@ jobs:
id: go
uses: actions/setup-go@v5
with:
- go-version: "1.26.x"
+ go-version: "~1.26.9"
check-latest: true
cache: false
@@ -488,9 +488,9 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
- # Deliberately independent from the minimum patch in server/go.mod:
- # CI follows the newest 1.26 patch available to setup-go.
- go-version: "1.26.x"
+ # Keep the security floor even when the setup-go manifest lags;
+ # continue accepting newer patches within Go 1.26.
+ go-version: "~1.26.9"
check-latest: true
cache-dependency-path: server/go.sum
@@ -527,9 +527,9 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
- # Deliberately independent from the minimum patch in server/go.mod:
- # CI follows the newest 1.26 patch available to setup-go.
- go-version: "1.26.x"
+ # Keep the security floor even when the setup-go manifest lags;
+ # continue accepting newer patches within Go 1.26.
+ go-version: "~1.26.9"
check-latest: true
cache-dependency-path: server/go.sum
@@ -788,7 +788,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-go@v5
with:
- go-version: "1.26.x"
+ go-version: "~1.26.9"
cache-dependency-path: server/go.sum
- name: Verify Cursor background lifecycle and watchdog races
shell: bash
diff --git a/.github/workflows/desktop-smoke.yml b/.github/workflows/desktop-smoke.yml
index 6573ea6cb1..4a66647886 100644
--- a/.github/workflows/desktop-smoke.yml
+++ b/.github/workflows/desktop-smoke.yml
@@ -30,9 +30,9 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
- # Deliberately independent from the minimum patch in server/go.mod:
- # CI follows the newest 1.26 patch available to setup-go.
- go-version: "1.26.x"
+ # Keep the security floor even when the setup-go manifest lags;
+ # continue accepting newer patches within Go 1.26.
+ go-version: "~1.26.9"
check-latest: true
cache-dependency-path: server/go.sum
diff --git a/.github/workflows/openclaw-config-smoke.yml b/.github/workflows/openclaw-config-smoke.yml
index 867ecf06c8..56fa1a9c55 100644
--- a/.github/workflows/openclaw-config-smoke.yml
+++ b/.github/workflows/openclaw-config-smoke.yml
@@ -35,7 +35,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
- go-version: "1.26.x"
+ go-version: "~1.26.9"
check-latest: true
cache-dependency-path: server/go.sum
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 448dc861b2..c46ed315fa 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -54,9 +54,9 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
- # Deliberately independent from the minimum patch in server/go.mod:
- # releases follow the newest 1.26 patch available to setup-go.
- go-version: "1.26.x"
+ # Keep the security floor even when the setup-go manifest lags;
+ # continue accepting newer patches within Go 1.26.
+ go-version: "~1.26.9"
check-latest: true
cache-dependency-path: server/go.sum
@@ -98,9 +98,9 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
- # Deliberately independent from the minimum patch in server/go.mod:
- # releases follow the newest 1.26 patch available to setup-go.
- go-version: "1.26.x"
+ # Keep the security floor even when the setup-go manifest lags;
+ # continue accepting newer patches within Go 1.26.
+ go-version: "~1.26.9"
check-latest: true
cache-dependency-path: server/go.sum
@@ -424,9 +424,9 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
- # Deliberately independent from the minimum patch in server/go.mod:
- # releases follow the newest 1.26 patch available to setup-go.
- go-version: "1.26.x"
+ # Keep the security floor even when the setup-go manifest lags;
+ # continue accepting newer patches within Go 1.26.
+ go-version: "~1.26.9"
check-latest: true
cache-dependency-path: server/go.sum
diff --git a/Dockerfile b/Dockerfile
index 8b0335a26f..6710b85c0c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
# --- Build stage ---
-FROM golang:1.26-alpine AS builder
+FROM golang:1.26.9-alpine AS builder
RUN apk add --no-cache git