From 9d9e89d696a25032d0793b4e628dbe3c3bd7929c Mon Sep 17 00:00:00 2001 From: James Kessler Date: Thu, 11 Jun 2026 10:49:34 -0700 Subject: [PATCH] Fix macOS install for Homebrew 6.0.0 tap trust requirement 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 --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 329d1a0d..cb741980 100644 --- a/action.yml +++ b/action.yml @@ -102,8 +102,10 @@ runs: # Enable debugging if 'debug' is true [ "${{ inputs.debug }}" == "true" ] && set -x - # Try to install coverage-reporter via Homebrew - if ! brew tap coverallsapp/coveralls --quiet || ! brew install coveralls --quiet; then + # Try to install coverage-reporter via Homebrew. + # The fully-qualified formula name auto-taps the repo and trusts only + # this formula, as required by tap trust in Homebrew 6.0.0+. + if ! brew install coverallsapp/coveralls/coveralls --quiet; then echo "Failed to install coveralls via Homebrew (macOS)." [ "${{ inputs.fail-on-error }}" == "false" ] && exit 0 exit 1