dependabot-git_submodules 0.268.0 → 0.271.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: d85efc37ba15aedaf0c31633fd33256e1a9f7f4028f2df1a64a8d99440036ce6
4
- data.tar.gz: 2b3424a3799a75aafdc5693e691013779e414c019f599e6bfc44d33281a6c588
3
+ metadata.gz: 6827a65bcf7f282e8f4fb25b660c6db9571672e5174afb4dfc2dd5fcdd5e6c92
4
+ data.tar.gz: 12f451d3d234c1237c24b912cf4275eb639bb195213e195e5f0ef58eefe1b2ef
5
5
  SHA512:
6
- metadata.gz: 7c8d5231fc7b02eb73182b9b59e8d285cfa1c08624c2b5319c0062730b530d29da370770b5ef855351fe8ed9ca259bbd3cfb1bddfb638b4460372eea2dbb60dc
7
- data.tar.gz: 30e69be9056df56e592da3e2f0c0ff6e6d4a28b17f5063474d4471b998d81b753d0a06a27012f1716a48cb8d96018917b43e80d1cefe8a5010c162f9cc307658
6
+ metadata.gz: 401cf777f434d459cbc2b1347dfe17c70a20c7f10cfbb7620e0c8140a6f7e357f99e914890ca8785c7819b8335b24f1a883257a153989fbcb4e74456e6838d4d
7
+ data.tar.gz: de0ae91130246714a6278c5975344294fc79e14d970af9b3c4fe83f19b1821b99925380d88121c05d31666641dc6cdcfb4a72d0a0dc6fba52089c64a30825611
@@ -11,9 +11,18 @@ module Dependabot
11
11
  class FileUpdater < Dependabot::FileUpdaters::Base
12
12
  extend T::Sig
13
13
 
14
- sig { override.returns(T::Array[Regexp]) }
15
- def self.updated_files_regex
16
- []
14
+ sig { override.params(allowlist_enabled: T::Boolean).returns(T::Array[Regexp]) }
15
+ def self.updated_files_regex(allowlist_enabled = false)
16
+ if allowlist_enabled
17
+ [
18
+ /^\.gitmodules$/, # Matches the .gitmodules file in the root directory
19
+ %r{^.+/\.git$}, # Matches the .git file inside any submodule directory
20
+ %r{^\.git/modules/.+} # Matches any files under .git/modules directory where submodule data is stored
21
+ ]
22
+ else
23
+ # Old regex. After 100% rollout of the allowlist, this will be removed.
24
+ []
25
+ end
17
26
  end
18
27
 
19
28
  sig { override.returns(T::Array[Dependabot::DependencyFile]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-git_submodules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.268.0
4
+ version: 0.271.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-08-02 00:00:00.000000000 Z
11
+ date: 2024-08-15 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.268.0
19
+ version: 0.271.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.268.0
26
+ version: 0.271.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: parseconfig
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -275,7 +275,7 @@ licenses:
275
275
  - MIT
276
276
  metadata:
277
277
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
278
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.268.0
278
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.271.0
279
279
  post_install_message:
280
280
  rdoc_options: []
281
281
  require_paths: