ci: add brew style + audit workflow for the tap#4
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.rbwas 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 toFormula/**(and tothe workflow itself), plus
workflow_dispatch:modernrelay/taptap,brew styleandbrew 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
brewcan't skip the tap publish — here the audit is thepoint of the PR, so it gates merge.
Validation
Ran locally against the current
Formula/omnigraph.rb:brew style modernrelay/tap/omnigraph→1 file inspected, no offenses detectedbrew audit --strict modernrelay/tap/omnigraph→ cleanFollow-up to ModernRelay/omnigraph#140.
🤖 Generated with Claude Code