dependabot-docker 0.240.0 → 0.242.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/file_parser.rb +7 -5
- data/lib/dependabot/docker/metadata_finder.rb +1 -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: e97724c30b6f3ab80401a149b53a6fb8f6f25e606d0bea25e3d6500c63fc72ed
|
4
|
+
data.tar.gz: 272a0b771b8beebd7efe2e0c41e016556ca5b21aa2b498480cdd8fb8f7af01a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19e3a05bd9ca056df159b4eadf8b2661c74ca9e0b42db188db35648309e6075af7027bc1a1e81847628e3e173e48ef91e60d58c1090bb95de78ec65af47997e1
|
7
|
+
data.tar.gz: e1871ed07928b26a79851aebb05e49975253747442cdbc310d432f3b2237045caebc4e59992595a7e7bcbdf7715b1e19a8d6deeb7dc684fc3083ff907844a0b2
|
@@ -171,17 +171,19 @@ module Dependabot
|
|
171
171
|
end
|
172
172
|
|
173
173
|
def parse_helm(img_hash)
|
174
|
-
repo = img_hash.fetch("repository", nil)
|
175
174
|
tag_value = img_hash.key?("tag") ? img_hash.fetch("tag", nil) : img_hash.fetch("version", nil)
|
176
|
-
|
175
|
+
return [] unless tag_value
|
176
|
+
|
177
|
+
repo = img_hash.fetch("repository", nil)
|
178
|
+
return [] unless repo
|
177
179
|
|
178
180
|
tag_details = tag_value.to_s.match(TAG_WITH_DIGEST).named_captures
|
179
181
|
tag = tag_details["tag"]
|
180
|
-
digest = tag_details["digest"]
|
181
|
-
|
182
|
-
return [] unless repo
|
183
182
|
return [repo] unless tag
|
184
183
|
|
184
|
+
registry = img_hash.fetch("registry", nil)
|
185
|
+
digest = tag_details["digest"]
|
186
|
+
|
185
187
|
image = "#{repo}:#{tag}"
|
186
188
|
image.prepend("#{registry}/") if registry
|
187
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
|
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]}"
|
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.242.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-22 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.242.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.242.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,7 +244,7 @@ licenses:
|
|
244
244
|
- Nonstandard
|
245
245
|
metadata:
|
246
246
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
247
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
247
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.242.0
|
248
248
|
post_install_message:
|
249
249
|
rdoc_options: []
|
250
250
|
require_paths:
|