Skip to content

Commit 8b51ff6

Browse files
kbukum1yeikel
authored andcommitted
Filter out credentials without a host in git_source type (dependabot#12973)
1 parent e9e5236 commit 8b51ff6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/lib/dependabot/shared_helpers.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ def self.configure_git_to_use_https_with_credentials(credentials, safe_directori
371371
git_store_content = ""
372372
deduped_credentials.each do |cred|
373373
next unless cred["type"] == "git_source"
374+
next unless cred["host"]
374375

375376
has_creds = cred["username"] && cred["password"]
376377

0 commit comments

Comments
 (0)