class Dependabot::Uv::Package::PackageRegistryFinder

def credential_for(url)

def credential_for(url)
  credentials
    .select { |c| c["type"] == "python_index" }
    .find do |c|
      cred_url = c.fetch("index-url").gsub(%r{/*$}, "") + "/"
      cred_url.include?(url)
    end
end