dependabot-common 0.98.47 → 0.98.48

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 435219b4447dc56ecc44cc7ee0f8f8808d60e22e1f2f8a0f7b6f3bc1a46155a1
4
- data.tar.gz: 7e5633b2bbf29985868561be703fffaae33414c7b8f82a86ae5cdd39ca79c33d
3
+ metadata.gz: f7122232497d422525c779ec27e82277bd4aea84ee272f8e5060e966456cf25e
4
+ data.tar.gz: 5c30588c7a5b5f412b16df38807ba260d44aa64b14fccc971586305e09a7c9c4
5
5
  SHA512:
6
- metadata.gz: a4340053eeb2aa32e79fb68bb19e29c222db0f4f4176ccd0de66718b4ddde08dcd451a276cc94a4c321f703480b73a8f3baefd409942b0ea5f738b4752c0b9bd
7
- data.tar.gz: 8948ee7596ca33c45fcdd17a13e2d6eaccabd08fddc403bf62ec04f050a4428401fc2fea26ee348e13e4dba4b5849b4df2b8584d16fa1cf137715211558610cb
6
+ metadata.gz: 01c91fed8b6d09cc6185df58ef51d1e4b6f1a872c2fc042d77607d263dc7b5790c364a6294f7b030f95fd04a900b4a02887d19ed8df9b86830d5f2230b9c6948
7
+ data.tar.gz: 259153f22890f6b2ab1772aa92b1178c31d46ddce7fedcf766855d783514499023e2ef3c533b71c12ea45e9ce110d425dc49b503b68b2d7a9d0187e431fca855
@@ -165,6 +165,8 @@ module Dependabot
165
165
  )
166
166
  end
167
167
 
168
+ # rubocop:disable Metrics/AbcSize
169
+ # rubocop:disable Metrics/MethodLength
168
170
  def self.configure_git_credentials(credentials)
169
171
  # Then add a file-based credential store that loads a file in this repo.
170
172
  # Under the hood this uses git credential-store, but it's invoked through
@@ -180,7 +182,7 @@ module Dependabot
180
182
  github_credentials = credentials.
181
183
  select { |c| c["type"] == "git_source" }.
182
184
  select { |c| c["host"] == "github.com" }.
183
- select { |c| c["password"] || c["username"] }
185
+ select { |c| c["password"] && c["username"] }
184
186
 
185
187
  # If multiple credentials are specified for github.com, pick the one that
186
188
  # *isn't* just an app token (since it must have been added deliberately)
@@ -196,6 +198,7 @@ module Dependabot
196
198
  git_store_content = ""
197
199
  deduped_credentials.each do |cred|
198
200
  next unless cred["type"] == "git_source"
201
+ next unless cred["username"] && cred["password"]
199
202
 
200
203
  authenticated_url =
201
204
  "https://#{cred.fetch('username')}:#{cred.fetch('password')}"\
@@ -207,6 +210,8 @@ module Dependabot
207
210
  # Save the file
208
211
  File.write("git.store", git_store_content)
209
212
  end
213
+ # rubocop:enable Metrics/AbcSize
214
+ # rubocop:enable Metrics/MethodLength
210
215
 
211
216
  def self.stash_global_git_config
212
217
  return unless File.exist?(GIT_CONFIG_GLOBAL_PATH)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.98.47"
4
+ VERSION = "0.98.48"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.98.47
4
+ version: 0.98.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-28 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecr