dependabot-docker 0.294.0 → 0.295.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/docker/update_checker.rb +14 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65df80cd815545e79e5a1fd377eeb5a6d6d96e8624378233d33662b638e32459
|
4
|
+
data.tar.gz: 7ffe73358a0560061b2a87b7ffc1c1bac17dd3dbcbfbe5e5011708db3485882a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ff3a199e2797341f91e1a4fd3fea47e33dee60bbbf6c766cc2f702ac3760ce651495e402de08201dffb33e3b918910ffb1d96fe3a3df13201832d8038a082c7
|
7
|
+
data.tar.gz: 45027cd10b10efc6e71fb461a0aa7e73f6b369fbb4caf29993b91c4701ea989bb60395e22afe709ca272274ba414a9c2eccc3f89286fc472108e26b75b9b90b9
|
@@ -300,17 +300,30 @@ module Dependabot
|
|
300
300
|
"library/#{dependency.name}"
|
301
301
|
end
|
302
302
|
|
303
|
+
# Defaults from https://github.com/deitch/docker_registry2/blob/bfde04144f0b7fd63c156a1aca83efe19ee78ffd/lib/registry/registry.rb#L26-L27
|
304
|
+
DEFAULT_DOCKER_OPEN_TIMEOUT_IN_SECONDS = 2
|
305
|
+
DEFAULT_DOCKER_READ_TIMEOUT_IN_SECONDS = 5
|
306
|
+
|
303
307
|
def docker_registry_client
|
304
308
|
@docker_registry_client ||=
|
305
309
|
DockerRegistry2::Registry.new(
|
306
310
|
"https://#{registry_hostname}",
|
307
311
|
user: registry_credentials&.fetch("username", nil),
|
308
312
|
password: registry_credentials&.fetch("password", nil),
|
309
|
-
read_timeout:
|
313
|
+
read_timeout: docker_read_timeout_in_seconds,
|
314
|
+
open_timeout: docker_open_timeout_in_seconds,
|
310
315
|
http_options: { proxy: ENV.fetch("HTTPS_PROXY", nil) }
|
311
316
|
)
|
312
317
|
end
|
313
318
|
|
319
|
+
def docker_open_timeout_in_seconds
|
320
|
+
ENV.fetch("DEPENDABOT_DOCKER_OPEN_TIMEOUT_IN_SECONDS", DEFAULT_DOCKER_OPEN_TIMEOUT_IN_SECONDS).to_i
|
321
|
+
end
|
322
|
+
|
323
|
+
def docker_read_timeout_in_seconds
|
324
|
+
ENV.fetch("DEPENDABOT_DOCKER_READ_TIMEOUT_IN_SECONDS", DEFAULT_DOCKER_READ_TIMEOUT_IN_SECONDS).to_i
|
325
|
+
end
|
326
|
+
|
314
327
|
def sort_tags(candidate_tags, version_tag)
|
315
328
|
candidate_tags.sort do |tag_a, tag_b|
|
316
329
|
if comparable_version_from(tag_a) > comparable_version_from(tag_b)
|
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.
|
4
|
+
version: 0.295.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-30 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.
|
19
|
+
version: 0.295.0
|
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.
|
26
|
+
version: 0.295.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -259,7 +259,7 @@ licenses:
|
|
259
259
|
- MIT
|
260
260
|
metadata:
|
261
261
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
262
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
262
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.295.0
|
263
263
|
post_install_message:
|
264
264
|
rdoc_options: []
|
265
265
|
require_paths:
|