Skip to content

ci: run the org pre-commit advisory workflow - #8

Merged
blairham merged 1 commit into
mainfrom
ci/pre-commit-advisory
Sep 2, 2026
Merged

ci: run the org pre-commit advisory workflow#8
blairham merged 1 commit into
mainfrom
ci/pre-commit-advisory

Conversation

@blairham

@blairham blairham commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

pre-commit-hooks carries a .pre-commit-config.yaml but had no CI job running it, so only the hooks that CI happened to duplicate had any backstop. The rest — gitleaks and detect-private-key among them — were enforced only by whoever remembered to run pre-commit install; anyone who had not, or who used --no-verify, had nothing checking them.

This calls the org's existing reusable workflow, pinpredict/.github/.github/workflows/pre-commit-advisory.yml, already used by covenant, dis, dispatch, herald, k4a, k5s, legate, magellan, quorum, replay, trader-tools, trading and understudy.

It is deliberately advisory, per the reusable's own design: scoped to the PR diff via --from-ref/--to-ref, posts a sticky PR comment, and is not in branch protection — so it shows a ❌ when a hook fails but never blocks merge. Hardening it later is a branch-protection change in the GitHub UI, not a YAML change.

No private-modules: no Go module here. Worth noting this repo hosts the org's own hooks, so running pre-commit against itself is dogfooding the thing it publishes.

pre-commit run --all-files is clean on main today (8 hooks, all passing), so this starts green rather than landing a repo that immediately reports violations.

Part of a sweep wiring this up across every repo that had a .pre-commit-config.yaml but no CI job for it. flux is excluded — it is a local-only checkout with no remote.

pre-commit-hooks carries a .pre-commit-config.yaml but had no CI job running it, so only the hooks that CI happened to duplicate had any backstop. The rest — gitleaks and detect-private-key among them — were enforced only by whoever remembered to run `pre-commit install`; anyone who had not, or who used --no-verify, had nothing checking them.

This calls the org's reusable pre-commit-advisory workflow, the same one
covenant, dis, dispatch, herald, k4a, k5s, legate, magellan, quorum,
replay, trader-tools, trading and understudy already use. It is
advisory by design: scoped to the PR diff, posts a sticky comment, and
is not in branch protection, so it surfaces a failure without blocking
merge.

No `private-modules`: no Go module here. Worth noting this repo *hosts* the org's own hooks, so running pre-commit against itself is dogfooding the thing it publishes.

pre-commit run --all-files is clean on main (8 hooks all
passing), so this starts green.
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

pre-commit (advisory) — no issues on changed files.

@blairham
blairham merged commit bbb7843 into main Sep 2, 2026
4 checks passed
@blairham
blairham deleted the ci/pre-commit-advisory branch September 2, 2026 20:50
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