File tree Expand file tree Collapse file tree 6 files changed +35
-18
lines changed Expand file tree Collapse file tree 6 files changed +35
-18
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ permissions:
14
14
15
15
jobs :
16
16
ci :
17
- uses : SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@main
17
+ uses : SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@v2
18
18
with :
19
19
upload_sarif : true
Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/gruntwork-io/pre-commit
3
- rev : v0.1.17
3
+ rev : v0.1.22
4
4
hooks :
5
- - id : terraform-fmt
6
- - id : terraform-validate
7
- - id : tflint
8
- args :
9
- - " --module"
10
- - " --config=.tflint.hcl"
11
- - id : markdown-link-check
12
5
- id : shellcheck
13
6
7
+ - repo : https://github.com/tcort/markdown-link-check
8
+ rev : v3.11.2
9
+ hooks :
10
+ - id : markdown-link-check
11
+ args :
12
+ - " --config=mlc_config.json"
13
+
14
14
- repo : https://github.com/antonbabenko/pre-commit-terraform
15
- rev : v1.64 .0
15
+ rev : v1.81 .0
16
16
hooks :
17
+ - id : terraform_fmt
18
+ - id : terraform_providers_lock
19
+ args :
20
+ - --args=-platform=linux_amd64
21
+ - id : terraform_validate
22
+ - id : terraform_tflint
23
+ args :
24
+ - --args=--module
25
+ - --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
17
26
- id : terraform_docs
18
27
args :
19
- - " --args=--lockfile=false"
28
+ - --hook-config=--path-to-file=README.md
29
+ - --hook-config=--add-to-existing-file=true
30
+ - --hook-config=--recursive=true
20
31
- id : terraform_tfsec
21
32
args :
22
33
- --args=--exclude-downloaded-modules
23
- - id : checkov
34
+ - id : terraform_checkov
35
+
24
36
- repo : https://github.com/pre-commit/pre-commit-hooks
25
- rev : v4.1 .0
37
+ rev : v4.4 .0
26
38
hooks :
27
39
# Git style
28
40
- id : check-added-large-files
Original file line number Diff line number Diff line change 1
1
plugin "aws" {
2
2
enabled = true
3
- version = " 0.13.4 "
3
+ version = " 0.24.1 "
4
4
source = " github.com/terraform-linters/tflint-ruleset-aws"
5
5
}
6
6
Original file line number Diff line number Diff line change 7
7
| ------| ---------|
8
8
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.0 |
9
9
| <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 4.0 |
10
+ | <a name =" requirement_tls " ></a > [ tls] ( #requirement\_ tls ) | >= 4.0 |
10
11
11
12
## Providers
12
13
13
14
| Name | Version |
14
15
| ------| ---------|
15
16
| <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 4.0 |
16
- | <a name =" provider_tls " ></a > [ tls] ( #provider\_ tls ) | n/a |
17
+ | <a name =" provider_tls " ></a > [ tls] ( #provider\_ tls ) | >= 4.0 |
17
18
18
19
## Modules
19
20
20
21
| Name | Source | Version |
21
22
| ------| --------| ---------|
22
- | <a name =" module_tfc_workload_identity_role " ></a > [ tfc\_ workload\_ identity\_ role] ( #module\_ tfc\_ workload\_ identity\_ role ) | terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc | ~ > 5.3.0 |
23
+ | <a name =" module_tfc_workload_identity_role " ></a > [ tfc\_ workload\_ identity\_ role] ( #module\_ tfc\_ workload\_ identity\_ role ) | terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc | ~ > 5.27 |
23
24
24
25
## Resources
25
26
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ resource "aws_iam_openid_connect_provider" "tfc_provider" {
4
4
url = local. oidc_provider_url
5
5
client_id_list = var. tfc_oidc_provider_audiences
6
6
thumbprint_list = [
7
- data . tls_certificate . tfc_certificate . certificates . 0 . sha1_fingerprint ,
7
+ data . tls_certificate . tfc_certificate . certificates [ 0 ] . sha1_fingerprint ,
8
8
]
9
9
}
10
10
11
11
module "tfc_workload_identity_role" {
12
12
source = " terraform-aws-modules/iam/aws//modules/iam-assumable-role-with-oidc"
13
- version = " ~> 5.3.0 "
13
+ version = " ~> 5.27 "
14
14
15
15
# Role must not be created if no workspaces are listed. Otherwise, anyone on TFC with the right
16
16
# audience can assume this role.
Original file line number Diff line number Diff line change @@ -5,5 +5,9 @@ terraform {
5
5
source = " hashicorp/aws"
6
6
version = " >= 4.0"
7
7
}
8
+ tls = {
9
+ source = " hashicorp/tls"
10
+ version = " >= 4.0"
11
+ }
8
12
}
9
13
}
You can’t perform that action at this time.
0 commit comments