dependabot-terraform 0.173.0 → 0.175.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: 601e55b109a04ccfb5167c16b283e91c0e18e60180be47196c14d0ea13cedd5a
4
- data.tar.gz: aafb9b9eb8c5b5e9ecb381c0132d3ddd78d8ee58203760935904c78804f64e87
3
+ metadata.gz: a76291f5237f43dc6728766d3f5eb978861d2fd4f2cd74379f0d4b7b17db5fcd
4
+ data.tar.gz: fa58e443593de2c1f6209863065f7e197eadbd2b9e9ce2525b645151c8d98a2c
5
5
  SHA512:
6
- metadata.gz: 01d4026886a17c5d371a04b2c91601f7ffd9caf35ecac842253c596ddaf5b42dfa6c103f5c9af9b167ecbd7e8f651379a5acf607512a2961259aafc5a2578f14
7
- data.tar.gz: 140fedf6360c600a083e89ca07d25bd8a45bff62b26a8f2b572045bd9a70778bd4d33b63908982710a6589b6b8b1886e689b7ed4007cda55b760450c72ec3bca
6
+ metadata.gz: '02475338e62447b5a5f1562a1b19573894c208b138e26adffa13f22be1a3313eed443bc5b7898fb73bfd6e033c2e4ec4989709d9b3a319db4faf74e72b8204d4'
7
+ data.tar.gz: 6e175ad0672d837d5617003d302b939eb7e546383c49f9f5f417d5347a6de035c3dffeda4e3b2db2411344ed96c6e105d33f0ecb2ee91a2f188ac433b10fb5d4
@@ -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.173.0
4
+ version: 0.175.0
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-14 00:00:00.000000000 Z
11
+ date: 2022-02-25 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.173.0
19
+ version: 0.175.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.173.0
26
+ version: 0.175.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement