dependabot-git_submodules 0.267.0 → 0.270.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: 6fa56765ce3cd44d5c69957abb5b7171aa04bf194f47118ec3d88af3bad4360a
4
- data.tar.gz: 6f3c686e0bdd54496921ed558ffcac8421870a0e7c0ae1b5b8236c74fb2c7ffb
3
+ metadata.gz: 7ef0b2c17d65d6ad4f1d71ae2c1fdc7460a20ca851659e92816d2f611dd19217
4
+ data.tar.gz: 2a352b5c144846d8e809efee9aefd8866f7916592a1e6b31557971066f0f6561
5
5
  SHA512:
6
- metadata.gz: fac902f10dcc780077fbfe9cbcbaff0d850ec81979406c7c65929b2805d32ed64a9fb137ba03763f0c965c1971e923068bcf21504b09b80b893691260e2257dd
7
- data.tar.gz: 68691d3f86b93828a4e8a70a5c48b00b90d9d2abb02293d45497b66a27aacea251831675816c84cad928860549bd25a0bd2081847fbb688a407930b31fd9cb5b
6
+ metadata.gz: 63896f6ba10b37d0911f0b2035be47ac3a2b7a2a06d295e7c6bdf34febd5c95288c33280aeea2ee083765c839bf1d513e185de672c960e0d06e8aa8285cc174d
7
+ data.tar.gz: 6e7044a9fb2b7713c7f4c0ca06981ee64a0af974ecd38a93dcacf2f09df1d0c9626c7791e6144a0aa0106a92b69cc639cad53407a1672376e7cb27af655d7d70
@@ -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.267.0
4
+ version: 0.270.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-07-25 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.267.0
19
+ version: 0.270.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.267.0
26
+ version: 0.270.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.267.0
278
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.270.0
279
279
  post_install_message:
280
280
  rdoc_options: []
281
281
  require_paths: