Merge pull request #8402 from dawidd6/no-gh-license
audit: return if no github license were found
This commit is contained in:
commit
af1e60014c
@ -398,7 +398,8 @@ module Homebrew
|
|||||||
return if user.blank?
|
return if user.blank?
|
||||||
|
|
||||||
github_license = GitHub.get_repo_license(user, repo)
|
github_license = GitHub.get_repo_license(user, repo)
|
||||||
return if github_license && (licenses + ["NOASSERTION"]).include?(github_license)
|
return unless github_license
|
||||||
|
return if (licenses + ["NOASSERTION"]).include?(github_license)
|
||||||
return if PERMITTED_LICENSE_MISMATCHES[github_license]&.any? { |license| licenses.include? license }
|
return if PERMITTED_LICENSE_MISMATCHES[github_license]&.any? { |license| licenses.include? license }
|
||||||
return if PERMITTED_FORMULA_LICENSE_MISMATCHES[formula.name] == formula.version
|
return if PERMITTED_FORMULA_LICENSE_MISMATCHES[formula.name] == formula.version
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user