From 48d8144dfb59db849a5d259ae56dcc1a01b0d1c4 Mon Sep 17 00:00:00 2001 From: "Michael A. Smith" Date: Fri, 13 Nov 2026 13:04:13 -0500 Subject: [PATCH] fix(actionlint): build with the latest stable Go instead of go.mod The setup-go action previously read go 1.25.0 from the fork's go.mod and installed exactly Go 1.25.0. That release is past end of support. Running govulncheck on a 1.25.0 build of v1.7.12-oce.3 finds three standard-library vulnerabilities actionlint's code reaches. These are GO-2026-4602 (os), GO-2026-4601 and GO-2025-4010 (net/url). Go 1.25.8 or later fixes them. No Dependabot alert covers the toolchain. The action now uses a stable go-version so it builds actionlint with the latest stable Go. We built v1.7.12-oce.3 with Go 1.27.4 (current stable) to test. Running govulncheck -mode=binary finds no vulnerabilities and the binary lints this repo's workflows clean. There is no matrix, because a matrix would rename the job's check, which consumers may require. Consumers pick this up through Dependabot when this repo releases. Assisted-by: Claude Code --- .github/workflows/actionlint.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 3b7b674..934fcf8 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -70,10 +70,13 @@ jobs: path: .actionlint persist-credentials: false + # Build with the latest stable Go, not the fork's `go` directive, which + # pins an exact release (1.25.0) that is past end of support and has + # standard-library vulnerabilities actionlint's code reaches. - name: Set up Go uses: actions/setup-go@v7 with: - go-version-file: .actionlint/go.mod + go-version: stable cache-dependency-path: .actionlint/go.sum - name: Install shellcheck