dependabot-docker 0.289.0 → 0.290.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: 8e08bbdd27d39f453431bf25cd6bb78de4490f0df16d99d8f12033b79fa67433
4
- data.tar.gz: 8d3bae25eb9c18991a22e2ed43ab02ac9863e5ceee6310ed983e8902c0d20017
3
+ metadata.gz: d99a2861324f6213a743ff4aad9303e135806d09a93cab25abef12ab4c44642f
4
+ data.tar.gz: aed1067329c752076af6816578efefa308ae45615facb06abec834319ebab893
5
5
  SHA512:
6
- metadata.gz: 2c40cfb759f8b158892746f46a304bb70cc88752ca894a6b024721f651053d39cbcf5aa9b7f8a670d0684c3e27b9866965ad5e9cdf382d0faa43ad27c7a86532
7
- data.tar.gz: 1d7226666f999d331d4ed1a43e6cfd4812ce7d9d20e4d2de5218326ad86640f2f6d227a0665ef62b4de3e6763a44a8d5703b09023c51c6967bfe6cdbf76970c8
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.289.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-12-05 00:00:00.000000000 Z
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.289.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.289.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.289.0
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: []