Skip to content

Commit 8a4cb32

Browse files
Uwe Schwaekesenolcolak
authored andcommitted
ci: move to Go 1.27.3 (GO-2026-6809) and pin Helm 3.22.1
Shared CI unblocker for the open PRs (independent of this PR's content): - govulncheck now reports GO-2026-6809 in crypto/x509 (reachable through the HTTP server), fixed in Go 1.27.3. Main pins 1.27.2 everywhere, so every PR's Runtime Vulnerabilities and SBOM job fails. Pin 1.27.3 in go.mod, tools/go.mod, CI workflows, the builder image, the test container and the single-node deploy script (version + sha256). - The unpinned Helm install now pulls Helm 4, whose 'helm plugin install' rejects the helm-unittest source without --verify=false, failing the Helm Charts job with 'plugin source does not support verification'. Install Helm 3.22.1 and helm-unittest 1.2.1 in an isolated plugin dir, matching PR #107, so the gate is version-stable. Signed-off-by: Uwe Schwaeke <uwe.schwaeke@sap.com>
1 parent 3344477 commit 8a4cb32

3 files changed

Lines changed: 13 additions & 15 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -521,27 +521,24 @@ jobs:
521521
name: Helm Charts
522522
runs-on: ubuntu-latest
523523
timeout-minutes: 10
524+
env:
525+
HELM_VERSION: v3.22.1
526+
HELM_UNITTEST_VERSION: v1.2.1
524527

525528
steps:
526529
- name: Checkout code
527530
uses: actions/checkout@v6
528531

529532
# Same mechanism as `make install-tools`: the official get-helm-3 script plus the
530533
# helm-unittest plugin, which `make chart-test` hard-requires (Makefile:103-104).
531-
- name: Install Helm and the helm-unittest plugin
534+
- name: Install pinned Helm and helm-unittest
532535
run: |
533-
if ! command -v helm >/dev/null 2>&1; then
534-
# Downloaded, not piped: the default run shell is `bash -e` without pipefail,
535-
# so `curl ... | bash` would swallow a failed download.
536-
curl -fsSL -o "$RUNNER_TEMP/get-helm-3" \
537-
https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
538-
bash "$RUNNER_TEMP/get-helm-3"
539-
fi
540-
if ! helm plugin list 2>/dev/null | grep -q '^unittest'; then
541-
# helm-unittest ships no provenance file; recent Helm refuses an
542-
# unverified plugin unless verification is explicitly skipped.
543-
helm plugin install https://github.com/helm-unittest/helm-unittest --verify=false
544-
fi
536+
export HELM_PLUGINS="$RUNNER_TEMP/helm-plugins"
537+
echo "HELM_PLUGINS=$HELM_PLUGINS" >> "$GITHUB_ENV"
538+
curl -fsSL -o "$RUNNER_TEMP/get-helm-3" \
539+
https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
540+
bash "$RUNNER_TEMP/get-helm-3" --version "$HELM_VERSION"
541+
helm plugin install https://github.com/helm-unittest/helm-unittest --version "$HELM_UNITTEST_VERSION" --verify=false
545542
helm version --short
546543
547544
# Lints + renders + unit-tests both product charts: charts/lightstack, then

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ permissions:
3232
contents: read
3333

3434
env:
35-
GO_VERSION: '1.27.2'
35+
GO_VERSION: '1.27.3'
3636
# Pinned to the same versions as CI (see the helm-check job in ci.yml). The
3737
# release must not let a runner-preinstalled Helm/plugin decide what gets
3838
# published.

‎docs/security/SBOM_TRIAGE.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ The generated runtime SPDX artifact replaces this export as the release inventor
4646
| Go 1.26.2 standard-library advisories | Toolchain affects every binary | Pin Go 1.26.8 in modules, CI, builder image, and test container |
4747
| GPL and other linter-only dependencies in the root module | Development-only, not shipped | Move the pinned linter graph to `tools/go.mod` |
4848
| Vulnerable transitive modules in the pinned linter graph | Development-only but executed in CI | Upgrade the affected modules and scan the linter command with `govulncheck` |
49-
| GO-2026-6603, -6605, -6607, -6608, -6610, -6611, -6612, -6613, -6617 in the Go 1.26.8 standard library, published 2026-10-08 | Reachable; toolchain affects every binary | Pin Go 1.27.2, the current release, in modules, CI, builder image, test container, and the single-node deploy script |
49+
| GO-2026-6603, -6605, -6607, -6608, -6610, -6611, -6612, -6613, -6617 in the Go 1.26.8 standard library, published 2026-10-08 | Reachable; toolchain affects every binary | Upgrade the toolchain in modules, CI, builder image, test container, and the single-node deploy script; current pin is Go 1.27.3 |
50+
| GO-2026-6809 in `crypto/x509`, detected by CI on 2026-10-30 | Reachable through the HTTP server; Go 1.27.2 trusts compromised intermediate certificates | Pin Go 1.27.3 throughout the build and test toolchain; keep vulnerability scanning enabled |
5051
| GO-2026-6603, -6610, -6611, -6612, -6617 in `x/net`, published 2026-10-08 | Reachable through gin's HTTP/2 support | Upgrade transitively from 0.57.0 to 0.60.0; `x/crypto`, `x/sys`, `x/sync`, and `x/text` move to its minimums |
5152
| GO-2026-6809 (`crypto/x509` intermediate-certificate distrust) in the Go 1.27.2 standard library, published after the 1.27.2 pin; reachable via `http.Server.Serve` → `x509.Certificate.Verify` | Reachable; toolchain affects every binary | Raise the go.mod floor to 1.27.3; CI (setup-go `go-version: stable`) and the builder and test images (`golang:1`) track the latest stable release, so later standard-library patches apply without a code change. The checksum-pinned single-node deploy script is the deliberate exception. |
5253

0 commit comments

Comments
 (0)