formula_auditor: also use tag when checking GitHub license
Signed-off-by: Michael Cho <michael@michaelcho.dev>
This commit is contained in:
parent
8d4e841965
commit
00a12b72d4
@ -242,6 +242,7 @@ module Homebrew
|
|||||||
return if user.blank?
|
return if user.blank?
|
||||||
|
|
||||||
tag = SharedAudits.github_tag_from_url(formula.stable.url)
|
tag = SharedAudits.github_tag_from_url(formula.stable.url)
|
||||||
|
tag ||= formula.stable.specs[:tag]
|
||||||
github_license = GitHub.get_repo_license(user, repo, ref: tag)
|
github_license = GitHub.get_repo_license(user, repo, ref: tag)
|
||||||
return unless github_license
|
return unless github_license
|
||||||
return if (licenses + ["NOASSERTION"]).include?(github_license)
|
return if (licenses + ["NOASSERTION"]).include?(github_license)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user