dependabot-docker 0.288.0 → 0.290.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 +10 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d99a2861324f6213a743ff4aad9303e135806d09a93cab25abef12ab4c44642f
|
4
|
+
data.tar.gz: aed1067329c752076af6816578efefa308ae45615facb06abec834319ebab893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 417929017e946beafadd5e24a61e3173a3a4783276d4fe22c4cfdb21ca3e913982c5bcb89a50a920f1f8979bee7784733af52b3daae14dc33d31fd1603ec03b0
|
7
|
+
data.tar.gz: 53e124eb706ec360e558c386aeb64d2042ea8c7d7dd77a5d926b6f13363693568c6d5ee1dd511dbce6137198380e66b176972e0034129ff3fab3db7aa8ae8ce4
|
@@ -42,6 +42,7 @@ module Dependabot
|
|
42
42
|
|
43
43
|
IMAGE_SPEC = %r{^(#{REGISTRY}/)?#{IMAGE}#{TAG}?(?:@sha256:#{DIGEST})?#{NAME}?}x
|
44
44
|
|
45
|
+
# rubocop:disable Metrics/AbcSize
|
45
46
|
sig { override.returns(T::Array[Dependabot::Dependency]) }
|
46
47
|
def parse
|
47
48
|
dependency_set = DependencySet.new
|
@@ -71,11 +72,20 @@ module Dependabot
|
|
71
72
|
end
|
72
73
|
|
73
74
|
manifest_files.each do |file|
|
75
|
+
if file.content && T.must(file.content).start_with?("\uFEFF")
|
76
|
+
# 0xFEFF is the encoding for the byte order mark (BOM). If a YAML file is loaded with a BOM it will parse
|
77
|
+
# successfully, but will only load the first line. To prevent this nearly empty object from being returned,
|
78
|
+
# the BOM is manually detected and reported as a parse error.
|
79
|
+
file_path = Pathname.new(file.directory).join(file.name).cleanpath.to_path
|
80
|
+
msg = "The file appears to have been saved with a byte order mark (BOM). This will prevent proper parsing."
|
81
|
+
raise Dependabot::DependencyFileNotParseable.new(file_path, msg)
|
82
|
+
end
|
74
83
|
dependency_set += workfile_file_dependencies(file)
|
75
84
|
end
|
76
85
|
|
77
86
|
dependency_set.dependencies
|
78
87
|
end
|
88
|
+
# rubocop:enable Metrics/AbcSize
|
79
89
|
|
80
90
|
private
|
81
91
|
|
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.290.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-12 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.290.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.290.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -258,8 +258,8 @@ licenses:
|
|
258
258
|
- MIT
|
259
259
|
metadata:
|
260
260
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
261
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
262
|
-
post_install_message:
|
261
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.290.0
|
262
|
+
post_install_message:
|
263
263
|
rdoc_options: []
|
264
264
|
require_paths:
|
265
265
|
- lib
|
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
275
275
|
version: 3.1.0
|
276
276
|
requirements: []
|
277
277
|
rubygems_version: 3.5.9
|
278
|
-
signing_key:
|
278
|
+
signing_key:
|
279
279
|
specification_version: 4
|
280
280
|
summary: Provides Dependabot support for Docker
|
281
281
|
test_files: []
|