dependabot-terraform 0.172.2 → 0.174.1

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: 52da969e55c1949f9017f05bee06705986c916ceeae5ce49fdfdc824844d317d
4
- data.tar.gz: d2223551122422ecb3ca21982e681c6dcc67fcd9a2b184d7bf51296532726362
3
+ metadata.gz: e940fd9001bfe69a62f852cbe2f4e8c7195da93a219d164379f29e36e6265fa2
4
+ data.tar.gz: 3b0f2c62b6347dda86e3d9724c989474d8df0ba809c154b54bb70179a9e75298
5
5
  SHA512:
6
- metadata.gz: 01e6c142b85761d9a75462d54f370a103ba1dfb6e04340542c782376be7e6c268ab74c0b16fd0b723548e38b8833e980fbed730b005ad375752b0a6f5d144f07
7
- data.tar.gz: a69625040359f33da19d6c7c1553f13c1ff66a0e108d6b902b63b5e5c49afe47c91f942c9574f03befbc37d72a93af50aeddcbaeaca2eaf0d2a67fdc44f429de
6
+ metadata.gz: 0dcf8f4c917733428ea84997c41e296bc0b9cb0795932583ad3d8ea1b39603d8b92ecf54ee231219af75c3f9abb30c8e62e13aa6bf695492c9c018dab466882f
7
+ data.tar.gz: a4975a7bea7b97660976550e3e78a53ef2555b4dee37c8728c9605b88a12572f999c065249249dfd096d2f260c9a7554cf8552586e2efd6ef7a50fe67ebdd5d2
@@ -13,6 +13,7 @@ module Dependabot
13
13
 
14
14
  PRIVATE_MODULE_ERROR = /Could not download module.*code from\n.*\"(?<repo>\S+)\":/.freeze
15
15
  MODULE_NOT_INSTALLED_ERROR = /Module not installed.*module\s*\"(?<mod>\S+)\"/m.freeze
16
+ GIT_HTTPS_PREFIX = %r{^git::https://}.freeze
16
17
 
17
18
  def self.updated_files_regex
18
19
  [/\.tf$/, /\.hcl$/]
@@ -149,7 +150,12 @@ module Dependabot
149
150
  output = e.message
150
151
 
151
152
  if output.match?(PRIVATE_MODULE_ERROR)
152
- raise PrivateSourceAuthenticationFailure, output.match(PRIVATE_MODULE_ERROR).named_captures.fetch("repo")
153
+ repo = output.match(PRIVATE_MODULE_ERROR).named_captures.fetch("repo")
154
+ if repo.match?(GIT_HTTPS_PREFIX)
155
+ repo = repo.sub(GIT_HTTPS_PREFIX, "")
156
+ repo = repo.sub(/\.git$/, "")
157
+ end
158
+ raise PrivateSourceAuthenticationFailure, repo
153
159
  end
154
160
 
155
161
  raise Dependabot::DependencyFileNotResolvable, "Error running `terraform init`: #{output}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.172.2
4
+ version: 0.174.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-11 00:00:00.000000000 Z
11
+ date: 2022-02-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.172.2
19
+ version: 0.174.1
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.172.2
26
+ version: 0.174.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement