From 00a12b72d477498eb052a97eafd6db1b195ab9a8 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Mon, 4 Mar 2024 11:56:19 -0500 Subject: [PATCH] formula_auditor: also use `tag` when checking GitHub license Signed-off-by: Michael Cho --- Library/Homebrew/formula_auditor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 613c576a27..0897b41d81 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -242,6 +242,7 @@ module Homebrew return if user.blank? tag = SharedAudits.github_tag_from_url(formula.stable.url) + tag ||= formula.stable.specs[:tag] github_license = GitHub.get_repo_license(user, repo, ref: tag) return unless github_license return if (licenses + ["NOASSERTION"]).include?(github_license)