dependabot-docker 0.98.31 → 0.98.32
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68c1ff19fc7aa50edc22b3d8bf09ae125bbd9cfe3e1ba0cfbdec92d44046f60d
|
|
4
|
+
data.tar.gz: 9ed799e69191a6c6200fc03e24ee07fd64f51dd6b96f00f14f2fbc293ec891bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 823ba6700646b0a22b35a1147ea10950fc153aac376f88a49a4fc8b254fe12ec23e424a8b7d966b003ed4c88dd53f523d035f00f41e61725c6ea1ce8d2fe811c
|
|
7
|
+
data.tar.gz: 35a1928043f55b733cb018f3c001755dcff09724949fce771d446c938209805461bfd9da6b809d6be607c38e0cc403f625437eade52939ada09cdf38bcabdf22
|
|
@@ -129,14 +129,16 @@ module Dependabot
|
|
|
129
129
|
|
|
130
130
|
DockerRegistry2::Registry.new(
|
|
131
131
|
"https://#{registry}",
|
|
132
|
-
user: credentials&.fetch("username"),
|
|
133
|
-
password: credentials&.fetch("password")
|
|
132
|
+
user: credentials&.fetch("username", nil),
|
|
133
|
+
password: credentials&.fetch("password", nil)
|
|
134
134
|
)
|
|
135
135
|
else
|
|
136
136
|
DockerRegistry2::Registry.new("https://registry.hub.docker.com")
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
+
# Has test that it works without username / password.
|
|
141
|
+
# TODO: Test with proxy
|
|
140
142
|
def registry_credentials(registry_url)
|
|
141
143
|
credentials_finder.credentials_for_registry(registry_url)
|
|
142
144
|
end
|
|
@@ -267,6 +267,8 @@ module Dependabot
|
|
|
267
267
|
registry_hostname == "registry.hub.docker.com"
|
|
268
268
|
end
|
|
269
269
|
|
|
270
|
+
# Has test that it works without username / password.
|
|
271
|
+
# TODO: Test with proxy
|
|
270
272
|
def registry_credentials
|
|
271
273
|
credentials_finder.credentials_for_registry(registry_hostname)
|
|
272
274
|
end
|
|
@@ -286,8 +288,8 @@ module Dependabot
|
|
|
286
288
|
@docker_registry_client ||=
|
|
287
289
|
DockerRegistry2::Registry.new(
|
|
288
290
|
"https://#{registry_hostname}",
|
|
289
|
-
user: registry_credentials&.fetch("username"),
|
|
290
|
-
password: registry_credentials&.fetch("password")
|
|
291
|
+
user: registry_credentials&.fetch("username", nil),
|
|
292
|
+
password: registry_credentials&.fetch("password", nil)
|
|
291
293
|
)
|
|
292
294
|
end
|
|
293
295
|
|
|
@@ -32,13 +32,15 @@ module Dependabot
|
|
|
32
32
|
|
|
33
33
|
def build_aws_credentials(registry_details)
|
|
34
34
|
# If credentials have been generated from AWS we can just return them
|
|
35
|
-
return registry_details if registry_details
|
|
35
|
+
return registry_details if registry_details["username"] == "AWS"
|
|
36
36
|
|
|
37
37
|
# Otherwise, we need to use the provided Access Key ID and secret to
|
|
38
38
|
# generate a temporary username and password
|
|
39
|
+
#
|
|
40
|
+
# TODO: Make this work with proxying
|
|
39
41
|
aws_credentials = Aws::Credentials.new(
|
|
40
|
-
registry_details.fetch("username"),
|
|
41
|
-
registry_details.fetch("password")
|
|
42
|
+
registry_details.fetch("username", nil),
|
|
43
|
+
registry_details.fetch("password", nil)
|
|
42
44
|
)
|
|
43
45
|
|
|
44
46
|
registry_hostname = registry_details.fetch("registry")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-docker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.98.
|
|
4
|
+
version: 0.98.32
|
|
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-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dependabot-common
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.98.
|
|
19
|
+
version: 0.98.32
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.98.
|
|
26
|
+
version: 0.98.32
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: byebug
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|