dependabot-docker 0.239.0 → 0.241.0

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: 5419974e6fd18d18ee294c4b59ac0e81b7f55a662b9456d070f6c593e9f5cae5
4
- data.tar.gz: f01df20473b9411c00c3d5f7e2b3cea8885c14f8ce8deddbae0d1ea5581728ce
3
+ metadata.gz: 45c63512a728e3f7919e655a0db6f3631ba24835728e72fd2c8af5709c1c166c
4
+ data.tar.gz: 959aaf1469b148169d84f604b869e57dae8f94ec0589e0928405c8579fde6706
5
5
  SHA512:
6
- metadata.gz: 5444aedcbef055a6588d516cd4f098db18749d54081c9fefa830258d5b6b388c58dba2bab0f99bf26e12751c5100d50fdb15a299df8e6943a258b4c2eec88282
7
- data.tar.gz: aaa252ac09bbbab0ce7d2b3bf58e72c78d8789f31e4ac37c57c5113453a41c926e03a8a668b877899638e04fd2beb2d0b0d033aec85b03396300eaa7d7029bbc
6
+ metadata.gz: cabc652ee17078e2bd77bd3d24a0a786f5f1e03077f74c2127cf239c12d4b268048c8d9732dbaf7f5d62a87b91488789939799361904321270a8ab4fabc8d9cd
7
+ data.tar.gz: 6f0b11164025d9b7e10165db185ecab53e038b5e446918696ab5e18587d2b7c6adb45ee346fc6f6a07a422968b9a9da113d51ef117f6975e62c2fab5be496685
@@ -111,7 +111,9 @@ module Dependabot
111
111
 
112
112
  images.each do |string|
113
113
  # TODO: Support Docker references and path references
114
- details = string.match(IMAGE_SPEC).named_captures
114
+ details = string.match(IMAGE_SPEC)&.named_captures
115
+ next if details.nil?
116
+
115
117
  details["registry"] = nil if details["registry"] == "docker.io"
116
118
 
117
119
  version = version_from(details)
@@ -169,17 +171,19 @@ module Dependabot
169
171
  end
170
172
 
171
173
  def parse_helm(img_hash)
172
- repo = img_hash.fetch("repository", nil)
173
174
  tag_value = img_hash.key?("tag") ? img_hash.fetch("tag", nil) : img_hash.fetch("version", nil)
174
- registry = img_hash.fetch("registry", nil)
175
+ return [] unless tag_value
176
+
177
+ repo = img_hash.fetch("repository", nil)
178
+ return [] unless repo
175
179
 
176
180
  tag_details = tag_value.to_s.match(TAG_WITH_DIGEST).named_captures
177
181
  tag = tag_details["tag"]
178
- digest = tag_details["digest"]
179
-
180
- return [] unless repo
181
182
  return [repo] unless tag
182
183
 
184
+ registry = img_hash.fetch("registry", nil)
185
+ digest = tag_details["digest"]
186
+
183
187
  image = "#{repo}:#{tag}"
184
188
  image.prepend("#{registry}/") if registry
185
189
  image << "@sha256:#{digest}/" if digest
@@ -13,7 +13,7 @@ module Dependabot
13
13
  def look_up_source
14
14
  return if dependency.requirements.empty?
15
15
 
16
- new_source = dependency.requirements.first[:source]
16
+ new_source = dependency.requirements.first&.fetch(:source)
17
17
  return unless new_source && new_source[:registry] && new_source[:tag]
18
18
 
19
19
  image_ref = "#{new_source[:registry]}/#{dependency.name}:#{new_source[:tag]}"
@@ -41,7 +41,7 @@ module Dependabot
41
41
 
42
42
  release_part, = parsed_version[:version].split("_", 2)
43
43
  release_part = Tag.new(release_part.chomp(".").chomp("-").chomp("_")).numeric_version || parsed_version
44
- super(release_part)
44
+ super(release_part.to_s)
45
45
  rescue ArgumentError
46
46
  # if we can't instantiate a version, it can't be correct
47
47
  false
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.239.0
4
+ version: 0.241.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-28 00:00:00.000000000 Z
11
+ date: 2024-01-18 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.239.0
19
+ version: 0.241.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.239.0
26
+ version: 0.241.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -206,6 +206,20 @@ dependencies:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: '3.18'
209
+ - !ruby/object:Gem::Dependency
210
+ name: webrick
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '1.7'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '1.7'
209
223
  description: Dependabot-Docker provides support for bumping Docker image tags via
210
224
  Dependabot. If you want support for multiple package managers, you probably want
211
225
  the meta-gem dependabot-omnibus.
@@ -230,7 +244,7 @@ licenses:
230
244
  - Nonstandard
231
245
  metadata:
232
246
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
233
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.239.0
247
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.241.0
234
248
  post_install_message:
235
249
  rdoc_options: []
236
250
  require_paths: