resource_auditor: relax version audit in taps

Disable the version regex audit for 3rd-party taps,
at least for now to allow time to comply.
This commit is contained in:
Steve Peters 2023-09-05 22:51:58 -07:00 committed by GitHub
parent 43295b2637
commit 0ae29cc7fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ module Homebrew
def audit_version
if version.nil?
problem "missing version"
elsif owner.is_a?(Formula) && !version.to_s.match?(GitHubPackages::VALID_OCI_TAG_REGEX)
elsif owner.is_a?(Formula) && owner.core_formula? && !version.to_s.match?(GitHubPackages::VALID_OCI_TAG_REGEX)
problem "version #{version} does not match #{GitHubPackages::VALID_OCI_TAG_REGEX.source}"
elsif !version.detected_from_url?
version_text = version