class Dependabot::Clients::GithubWithRetries

def self.for_github_dot_com(credentials:)

def self.for_github_dot_com(credentials:)
  access_tokens =
    credentials
    .select { |cred| cred["type"] == "git_source" }
    .select { |cred| cred["host"] == "github.com" }
    .select { |cred| cred["password"] }
    .map { |cred| cred.fetch("password") }
  new(access_tokens: access_tokens)
end