dependabot-common 0.98.47 → 0.98.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dependabot/shared_helpers.rb +6 -1
- data/lib/dependabot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7122232497d422525c779ec27e82277bd4aea84ee272f8e5060e966456cf25e
|
|
4
|
+
data.tar.gz: 5c30588c7a5b5f412b16df38807ba260d44aa64b14fccc971586305e09a7c9c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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"]
|
|
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)
|
data/lib/dependabot/version.rb
CHANGED
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.
|
|
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-
|
|
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
|