dependabot-terraform 0.235.0 → 0.237.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e35c078fb1c9fb0023321b235eee693815ffec972c53e23c4c3dfe790eadffc
|
4
|
+
data.tar.gz: 7dde57dcd2186daa46f9ded21336b52e966dbdaabff05900e9eac80f279f2af3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 221b35e848465c4e1327470f11d56bc87ade4091b79846761eb497c5b39c22cea40bd652df27acd454b60c907408fb715a68e0cbf54b6be1d6fca8fe39ceb755
|
7
|
+
data.tar.gz: fa1999696b5fbcc945b7264a9a6d3aa9b6c1c7de2d65585d3da5b2d1a5b33159cbccafcb345b22f22e74f73dd0ae5ad50de0d92bc16b49320b2e3f76451807d4
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
+
require "sorbet-runtime"
|
4
5
|
require "dependabot/file_fetchers"
|
5
6
|
require "dependabot/file_fetchers/base"
|
6
7
|
require "dependabot/terraform/file_selector"
|
@@ -8,6 +9,9 @@ require "dependabot/terraform/file_selector"
|
|
8
9
|
module Dependabot
|
9
10
|
module Terraform
|
10
11
|
class FileFetcher < Dependabot::FileFetchers::Base
|
12
|
+
extend T::Sig
|
13
|
+
extend T::Helpers
|
14
|
+
|
11
15
|
include FileSelector
|
12
16
|
|
13
17
|
# https://www.terraform.io/docs/language/modules/sources.html#local-paths
|
@@ -21,8 +25,7 @@ module Dependabot
|
|
21
25
|
"Repo must contain a Terraform configuration file."
|
22
26
|
end
|
23
27
|
|
24
|
-
|
25
|
-
|
28
|
+
sig { override.returns(T::Array[DependencyFile]) }
|
26
29
|
def fetch_files
|
27
30
|
fetched_files = []
|
28
31
|
fetched_files += terraform_files
|
@@ -38,6 +41,8 @@ module Dependabot
|
|
38
41
|
)
|
39
42
|
end
|
40
43
|
|
44
|
+
private
|
45
|
+
|
41
46
|
def terraform_files
|
42
47
|
@terraform_files ||=
|
43
48
|
repo_contents(raise_errors: false)
|
@@ -6,6 +6,7 @@ require "excon"
|
|
6
6
|
require "nokogiri"
|
7
7
|
require "open3"
|
8
8
|
require "digest"
|
9
|
+
require "sorbet-runtime"
|
9
10
|
require "dependabot/dependency"
|
10
11
|
require "dependabot/file_parsers"
|
11
12
|
require "dependabot/file_parsers/base"
|
@@ -18,6 +19,8 @@ require "dependabot/terraform/registry_client"
|
|
18
19
|
module Dependabot
|
19
20
|
module Terraform
|
20
21
|
class FileParser < Dependabot::FileParsers::Base
|
22
|
+
extend T::Sig
|
23
|
+
|
21
24
|
require "dependabot/file_parsers/base/dependency_set"
|
22
25
|
|
23
26
|
include FileSelector
|
@@ -147,7 +150,7 @@ module Dependabot
|
|
147
150
|
end
|
148
151
|
|
149
152
|
def build_terragrunt_dependency(file, source)
|
150
|
-
dep_name = Source.from_url(source[:url]) ? Source.from_url(source[:url]).repo : source[:url]
|
153
|
+
dep_name = Source.from_url(source[:url]) ? T.must(Source.from_url(source[:url])).repo : source[:url]
|
151
154
|
version = version_from_ref(source[:ref])
|
152
155
|
|
153
156
|
Dependency.new(
|
data/lib/dependabot/terraform.rb
CHANGED
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.
|
4
|
+
version: 0.237.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-21 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.
|
19
|
+
version: 0.237.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.
|
26
|
+
version: 0.237.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,20 +94,34 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.3'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-sorbet
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.9.2
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.9.2
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rubocop
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
117
|
+
version: 1.57.2
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
124
|
+
version: 1.57.2
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: rubocop-performance
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -217,7 +231,7 @@ licenses:
|
|
217
231
|
- Nonstandard
|
218
232
|
metadata:
|
219
233
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
220
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
234
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.237.0
|
221
235
|
post_install_message:
|
222
236
|
rdoc_options: []
|
223
237
|
require_paths:
|