Skip to content

Commit

Permalink
Merge pull request #16812 from cho-m/formula_auditor-also-check-tag
Browse files Browse the repository at this point in the history
formula_auditor: also use `tag` when checking GitHub license
  • Loading branch information
MikeMcQuaid authored Mar 4, 2024
2 parents c5e7282 + 00a12b7 commit cf7c093
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/formula_auditor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ def audit_license
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)
Expand Down

0 comments on commit cf7c093

Please sign in to comment.