Skip to content

Fix macOS install for Homebrew 6.0.0 tap trust requirement#265

Open
afinetooth wants to merge 1 commit into
mainfrom
fix-homebrew-6-tap-trust
Open

Fix macOS install for Homebrew 6.0.0 tap trust requirement#265
afinetooth wants to merge 1 commit into
mainfrom
fix-homebrew-6-tap-trust

Conversation

@afinetooth

Copy link
Copy Markdown
Member

Problem

Homebrew 6.0.0 (released 2026-06-11) requires third-party taps to be explicitly trusted before their formulae are loaded (announcement, Tap Trust docs). The macOS install step previously ran:

brew tap coverallsapp/coveralls --quiet
brew install coveralls --quiet

which now fails on updated runners with:

Error: Refusing to load formula coverallsapp/coveralls/coveralls from untrusted tap coverallsapp/coveralls.

Fixes #264

Fix

Install via the fully-qualified formula name instead:

brew install coverallsapp/coveralls/coveralls --quiet

A fully-qualified install auto-taps the repo and trusts only this formula, non-interactively — no separate brew tap needed. This is the approach recommended by the Tap Trust docs and the same fix ddev applied for the same break (ddev/ddev#8455).

Why not brew trust?

brew trust coverallsapp/coveralls also works, but the command doesn't exist on Homebrew < 6, so it would break runners that haven't updated yet. The fully-qualified install works on both old and new Homebrew.

Workaround for users pinned to older action versions

- name: Trust Coveralls Homebrew tap (Homebrew 6 requirement)
  if: runner.os == 'macOS'
  run: brew trust coverallsapp/coveralls
- uses: coverallsapp/github-action@v2

🤖 Generated with Claude Code

Homebrew 6.0.0 refuses to load formulae from untrusted third-party taps,
so `brew tap coverallsapp/coveralls && brew install coveralls` now fails
with "Refusing to load formula ... from untrusted tap".

Installing via the fully-qualified formula name auto-taps the repo and
trusts only this formula, non-interactively. It is also backwards
compatible with Homebrew < 6, unlike `brew trust`, which does not exist
on older versions.

Fixes #264

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

Installation fails on macOS with recent Homebrew changes

1 participant