diff --git a/Library/Homebrew/livecheck/strategy/github_latest.rb b/Library/Homebrew/livecheck/strategy/github_latest.rb index 92792059b38952..45bf7b478c3e62 100644 --- a/Library/Homebrew/livecheck/strategy/github_latest.rb +++ b/Library/Homebrew/livecheck/strategy/github_latest.rb @@ -141,7 +141,11 @@ def self.find_versions(url:, regex: DEFAULT_REGEX, **_unused, &block) match_data[:url] = generated[:url] - release = GitHub.get_latest_release(generated[:username], generated[:repository]) + release = GitHub::API.open_rest( + generated[:url], + request_method: :GET, + **Strategy::DEFAULT_CURL_OPTIONS + ) versions_from_content(release, regex, &block).each do |match_text| match_data[:matches][match_text] = Version.new(match_text) end