Consolidate CI into test.yml and add lint lockstep

Merged
JE
3mo ago
+379-143

Stacked on #192 (shares Makefile edits); retargets to main when that merges.

What

  • Delete ci.yml. test.yml is the single PR gate: test (tidy-check, go test -v ./..., make build, --version smoke), lint (fmt, vet, lockstep check, golangci-lint v2.11.1), lint-actions (actionlint + zizmor v0.6.2), security (govulncheck), race-check (whole tree), cli-surface (TestSurfaceSnapshot). HEY_NO_KEYRING=1 on Go jobs. workflow_call stays until the release.yml port gives it its own tag-SHA test job.
  • scripts/check-lint-lockstep.sh (ported from basecamp-cli): every golangci-lint-action step must be pinned, all pins must agree, and they must be ≥ v2.11.1. Wired as make check-lint-lockstep, part of make check, and runs before the linter in CI.
  • Pre-commit golangci rev v2.1.6 → v2.11.1; make tools installs the pinned version instead of @latest.
  • New codeql.yml (go + actions) using the previously orphaned .github/codeql/codeql-config.yml.
  • PR labeler (commands, tui, auth, output, skills, plugin, tests, docs, deps, ci).
  • CODEOWNERS covers .goreleaser.yaml and scripts/release.sh; dependabot deps/ci commit prefixes; sensitive-change gate extended to the release config, release.yml, and the installer/signing scripts (some of which arrive in later PRs — the gate is pattern-based, so listing them now is harmless).

Verified

actionlint (with shellcheck), zizmor clean, make check-lint-lockstep, golangci-lint run (0 issues), TestSurfaceSnapshot.


Summary by cubic

Consolidates CI into a single test.yml gate, enforces golangci-lint lockstep, and runs the security workflow on every pull request so required secret scanning covers stacked branches. Previously checks were split across ci.yml and test.yml with different pins, and security only ran for PRs targeting main.

  • test.yml is the sole gate: module tidiness, unit tests with coverage floor, build + pipefail smoke, lint (fmt, vet, lockstep precheck, golangci-lint v2.11.1), Actions audit (actionlint, zizmor), govulncheck @latest, race tests, and CLI surface snapshot. Sets HEY_NO_KEYRING=1. Triggers on all PRs, pushes to main, and temporarily via workflow_call.

  • Strict lockstep: scripts/check-lint-lockstep.sh uses pure Bash numeric comparison and accepts quoted pins; fails on unpinned steps, mismatched pins, or versions below v2.11.1. Runs before the linter, is wired as make check-lint-lockstep, and is part of make check. Pre-commit pins golangci-lint v2.11.1; make tools installs the same pin.

  • Security: security.yml now runs on every pull request so secret scanning is present on the head SHA for stacked PRs.

  • Also adds codeql.yml (Go and Actions) on a weekly schedule, a PR labeler (.github/workflows/labeler.yml + labeler.yml), extends CODEOWNERS, sets Dependabot commit prefixes (deps, ci), and expands the sensitive-change gate to release and installer scripts.

  • Required: when bumping golangci-lint, update all workflow pins and raise MIN_VERSION in scripts/check-lint-lockstep.sh in the same commit; run make tools to sync the pinned version.