class Dependabot::Uv::MetadataFinder
def fetch_authed_url(url)
def fetch_authed_url(url) if url.match(%r{(.*)://(.*?):(.*)@([^@]+)$}) && Regexp.last_match&.captures&.[](1)&.include?("@") protocol, user, pass, url = T.must(Regexp.last_match).captures Dependabot::RegistryClient.get( url: "#{protocol}://#{url}", options: { user: user, password: pass } ) else Dependabot::RegistryClient.get(url: url) end end