Sha256: ecd0a2135c28240b372a6bd578fdacf9db2e11f4aad2206b09a74266f1e63aec
Contents?: true
Size: 747 Bytes
Versions: 460
Compression:
Stored size: 747 Bytes
Contents
# frozen_string_literal: true module Bundler class Source class Git class GitProxy private # Bundler allows ssh authentication when talking to GitHub but there's # no way for Dependabot to do so (it doesn't have any ssh keys). # Instead, we convert all `git@github.com:` URLs to use HTTPS. def configured_uri_for(uri) uri = uri.gsub(/git@(.*?):/, 'https://\1/') if uri.match?(/https?:/) remote = URI(uri) config_auth = Bundler.settings[remote.to_s] || Bundler.settings[remote.host] remote.userinfo ||= config_auth remote.to_s else uri end end end end end end
Version data entries
460 entries across 460 versions & 2 rubygems