Skip to content

ci(go): harden reusable go-ci gate (gofmt + vet + govulncheck)#3

Open
rafael5 wants to merge 1 commit into
mainfrom
harden-go-ci-gate
Open

ci(go): harden reusable go-ci gate (gofmt + vet + govulncheck)#3
rafael5 wants to merge 1 commit into
mainfrom
harden-go-ci-gate

Conversation

@rafael5

@rafael5 rafael5 commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Aligns the shared go-ci.yml with the documented house Go gate
(fmt + vet + golangci-lint + test-race + govulncheck). Previously CI ran only
lint + race-cover + build-matrix — weaker than the local make check.

Added to the lint-test job:

  • gofmt -l check (fails on any non-gofmt'd file)
  • explicit go vet ./...
  • govulncheck ./... (pinned analyzer v1.1.4, live vuln DB) behind a new
    vuln-check input (default true) as an escape hatch for un-patchable
    transitive vulns.

Propagates to all 12 repos that consume go-ci.yml@main. Heads-up: a
consumer with a pre-existing known-vuln dependency will start failing the new
govulncheck step — that's the gate working; flip vuln-check: false if a vuln
has no fix yet.

🤖 Generated with Claude Code

Align the shared go-ci.yml with the documented house Go gate
(fmt + vet + golangci-lint + test-race + govulncheck). Previously CI ran
only lint + race-cover + build-matrix, weaker than the local `make check`
contract.

Added to the lint-test job:
- gofmt -l check (fails on any non-gofmt'd file)
- explicit `go vet ./...`
- govulncheck ./... (pinned analyzer v1.1.4, live vuln DB), gated behind a
  new `vuln-check` input (default true) as an escape hatch for un-patchable
  transitive vulns.

Propagates to all 12 repos that consume go-ci.yml@main.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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