Skip to content

feat(pre-commit-advisory): run pre-commit via the go-pre-commit action#35

Merged
blairham merged 1 commit into
mainfrom
feat/advisory-go-pre-commit-action
Jul 3, 2026
Merged

feat(pre-commit-advisory): run pre-commit via the go-pre-commit action#35
blairham merged 1 commit into
mainfrom
feat/advisory-go-pre-commit-action

Conversation

@blairham

@blairham blairham commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Adopts blairham/go-pre-commit's action as the pre-commit provider in the advisory workflow, replacing pip install pre-commit.

  • install-only: 'true' — the workflow keeps driving pre-commit itself: the diff-scoped run --from-ref/--to-ref (whose log feeds the sticky PR comment) and the push-to-main install-hooks cache seed. Requires feat(action): add install-only input blairham/go-pre-commit#31 (adds the input) — merge that first.
  • cache: 'false' on the action — the workflow's own cache step owns caching (it has restore-keys); its key prefix is bumped to go-pre-commit-* so hook envs built by the old Python pre-commit are never restored into the Go implementation.
  • setup-python stayslanguage: python hooks (ruff in magellan/trader-tools) still need an interpreter; go-pre-commit builds their venvs with the Python on PATH.
  • Binary pinned v4.5.4 (matches dev machines); action ref @main until a release tag carries the new input.
  • The GOTOOLCHAIN pin from fix(pre-commit-advisory): pin GOTOOLCHAIN for golang hooks #34 is unchanged and still load-bearing for the language: golang golangci hooks.

🤖 Generated with Claude Code

Replaces the pip-installed Python pre-commit with blairham/go-pre-commit
(install-only mode — this workflow keeps driving the diff-scoped run, the
sticky PR comment, and the install-hooks cache seed itself). Cache key
prefix bumped to go-pre-commit-* so Python-built hook envs are never
restored into the Go implementation. setup-python stays for
language: python hooks (ruff).
@blairham
blairham merged commit 2c60f7f into main Jul 3, 2026
2 checks passed
@blairham
blairham deleted the feat/advisory-go-pre-commit-action branch July 5, 2026 14:36
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