Skip to content
Snippets Groups Projects
Unverified Commit 2689213f authored by Dawid Dziurla's avatar Dawid Dziurla
Browse files

audit: return if no github license were found

parent dd71f388
No related branches found
No related tags found
No related merge requests found
......@@ -398,6 +398,7 @@ module Homebrew
return if user.blank?
github_license = GitHub.get_repo_license(user, repo)
return unless github_license
return if github_license && (licenses + ["NOASSERTION"]).include?(github_license)
return if PERMITTED_LICENSE_MISMATCHES[github_license]&.any? { |license| licenses.include? license }
return if PERMITTED_FORMULA_LICENSE_MISMATCHES[formula.name] == formula.version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment