Skip to content

ci: add brew style + audit workflow for the tap#4

Merged
aaltshuler merged 1 commit into
mainfrom
ci/formula-audit
Jun 5, 2026
Merged

ci: add brew style + audit workflow for the tap#4
aaltshuler merged 1 commit into
mainfrom
ci/formula-audit

Conversation

@aaltshuler

Copy link
Copy Markdown
Collaborator

Why

Completes the second half of the root cause behind the DX-audit finding
iss-dx-brew-install-broken.

The engine's release pipeline audits the formula it generates (fixed in
ModernRelay/omnigraph#140), but this tap repo had zero CI of its own — a
hand-edited or drifted Formula/omnigraph.rb was never independently linted.
That's the gap the audit called out: "homebrew-tap has its own audit CI."

What

Adds .github/workflows/audit.yml, which on every change to Formula/** (and to
the workflow itself), plus workflow_dispatch:

  • sets up Homebrew on the runner,
  • registers the checkout as the modernrelay/tap tap,
  • runs brew style and brew audit --strict (offline → deterministic,
    network-independent; still catches the structural / ComponentsOrder defect
    class).

Unlike the release pipeline — where the audit is intentionally a non-blocking
canary so a flaky brew can't skip the tap publish — here the audit is the
point of the PR, so it gates merge.

Validation

Ran locally against the current Formula/omnigraph.rb:

  • brew style modernrelay/tap/omnigraph1 file inspected, no offenses detected
  • brew audit --strict modernrelay/tap/omnigraph → clean

Follow-up to ModernRelay/omnigraph#140.

🤖 Generated with Claude Code

The engine's release pipeline audits the formula it generates, but this tap
repo had zero CI of its own — a hand-edited or drifted formula here was never
independently linted, the second half of iss-dx-brew-install-broken's root
cause. Add a workflow that runs `brew style` + `brew audit --strict` (offline,
deterministic) on every change to Formula/** and to the workflow itself, so a
malformed formula can't reach `main` and break `brew install`.

Validated locally against Formula/omnigraph.rb: style clean, audit clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@aaltshuler aaltshuler merged commit 7dcb2a3 into main Jun 5, 2026
1 check passed
@aaltshuler aaltshuler deleted the ci/formula-audit branch June 5, 2026 23:55
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