Skip to content

ci: fix lint (toolchain skew) and vuln (stdlib CVE) gates#22

Merged
CryptoJones merged 1 commit into
mainfrom
ci/fix-lint-vuln-gates
Jun 5, 2026
Merged

ci: fix lint (toolchain skew) and vuln (stdlib CVE) gates#22
CryptoJones merged 1 commit into
mainfrom
ci/fix-lint-vuln-gates

Conversation

@CryptoJones

Copy link
Copy Markdown
Owner

Both failing checks on #21 were environmental, not code:

  • lint — the prebuilt golangci-lint (action version: latest / golangci-lint:latest image) was built with an older Go toolchain and refused to analyse a module targeting a newer Go (exit code 3, "language version ... lower than the targeted Go version"). Fixed by building golangci-lint from source with the job's own toolchain.
  • vulngovulncheck flagged two crypto/x509 stdlib CVEs in go1.25.10, fixed in go1.25.11. Pinned the toolchain to 1.25.11.

Applied to both .github/workflows/ci.yml and the authoritative .woodpecker.yml. CI-only; no code or version change. This PR's own run validates the fix.

🤖 Generated with Claude Code

Two CI gates were red for reasons unrelated to any code change:

- lint: golangci-lint-action / golangci-lint:latest shipped a binary built
  with an older Go toolchain, which refuses to analyse a module that targets
  a newer Go ("language version ... lower than the targeted Go version").
  Build golangci-lint from source with the job's own toolchain instead, so
  the linter's Go version stays in lockstep with the module.
- vuln: govulncheck flagged two crypto/x509 stdlib CVEs present in go1.25.10
  (fixed in go1.25.11). Pin the toolchain to 1.25.11.

Applied identically to the GitHub Actions workflow and the authoritative
Woodpecker pipeline for mirror parity. CI-only chore; no version bump.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit d3dbcd7 into main Jun 5, 2026
7 checks passed
@CryptoJones CryptoJones deleted the ci/fix-lint-vuln-gates branch June 5, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant