Skip to content

Commit a8b7a91

Browse files
authored
bump to support tflint 0.54 and pin version (#5895)
1 parent fbebf82 commit a8b7a91

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

.github/workflows/tflint.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
- uses: actions/checkout@v3
1919
name: Checkout source code
2020

21-
- uses: terraform-linters/setup-tflint@v2
21+
- uses: terraform-linters/setup-tflint@v4
2222
name: Setup TFLint
2323
with:
2424
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
tflint_version: v0.54.0
2526

2627
- name: Install Terraform
2728
uses: hashicorp/setup-terraform@v2
@@ -40,7 +41,7 @@ jobs:
4041
run: terraform init
4142
- name: "Run TFLint download-lambda"
4243
working-directory: terraform-aws-github-runner/modules/download-lambda
43-
run: tflint --module
44+
run: tflint --call-module-type=all
4445
- name: "Run terraform validate download-lambda"
4546
working-directory: terraform-aws-github-runner/modules/download-lambda
4647
run: terraform validate
@@ -53,7 +54,7 @@ jobs:
5354
run: terraform init
5455
- name: "Run TFLint runner-binaries-syncer"
5556
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer
56-
run: tflint --module
57+
run: tflint --call-module-type=all
5758
- name: "Run terraform validate runner-binaries-syncer"
5859
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer
5960
run: terraform validate
@@ -66,7 +67,7 @@ jobs:
6667
run: terraform init
6768
- name: "Run TFLint runners-instances"
6869
working-directory: terraform-aws-github-runner/modules/runners-instances
69-
run: tflint --module
70+
run: tflint --call-module-type=all
7071
- name: "Run terraform validate runners-instances"
7172
working-directory: terraform-aws-github-runner/modules/runners-instances
7273
run: terraform validate
@@ -79,7 +80,7 @@ jobs:
7980
run: terraform init
8081
- name: "Run TFLint runners"
8182
working-directory: terraform-aws-github-runner/modules/runners
82-
run: tflint --module
83+
run: tflint --call-module-type=all
8384
- name: "Run terraform validate runners"
8485
working-directory: terraform-aws-github-runner/modules/runners
8586
run: terraform validate
@@ -92,7 +93,7 @@ jobs:
9293
run: terraform init
9394
- name: "Run TFLint setup-iam-permissions"
9495
working-directory: terraform-aws-github-runner/modules/setup-iam-permissions
95-
run: tflint --module
96+
run: tflint --call-module-type=all
9697
- name: "Run terraform validate setup-iam-permissions"
9798
working-directory: terraform-aws-github-runner/modules/setup-iam-permissions
9899
run: terraform validate
@@ -105,7 +106,7 @@ jobs:
105106
run: terraform init
106107
- name: "Run TFLint webhook"
107108
working-directory: terraform-aws-github-runner/modules/webhook
108-
run: tflint --module
109+
run: tflint --call-module-type=all
109110
- name: "Run terraform validate webhook"
110111
working-directory: terraform-aws-github-runner/modules/webhook
111112
run: terraform validate
@@ -118,7 +119,7 @@ jobs:
118119
run: terraform init
119120
- name: "Run TFLint main"
120121
working-directory: terraform-aws-github-runner
121-
run: tflint --module
122+
run: tflint --call-module-type=all
122123
- name: "Run terraform validate terraform-aws-github-runner"
123124
working-directory: terraform-aws-github-runner
124125
run: terraform validate

terraform-aws-github-runner/.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ plugin "aws" {
1010
}
1111

1212
config {
13-
module = true
13+
call_module_type = "all"
1414
}

terraform-aws-github-runner/modules/download-lambda/.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ plugin "aws" {
1010
}
1111

1212
config {
13-
module = true
13+
call_module_type = "all"
1414
}

terraform-aws-github-runner/modules/runner-binaries-syncer/.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ plugin "aws" {
1010
}
1111

1212
config {
13-
module = true
13+
call_module_type = "all"
1414
}

terraform-aws-github-runner/modules/runners/.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ plugin "aws" {
1010
}
1111

1212
config {
13-
module = true
13+
call_module_type = "all"
1414
}

terraform-aws-github-runner/modules/setup-iam-permissions/.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ plugin "aws" {
1010
}
1111

1212
config {
13-
module = true
13+
call_module_type = "all"
1414
}

terraform-aws-github-runner/modules/webhook/.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ plugin "aws" {
1010
}
1111

1212
config {
13-
module = true
13+
call_module_type = "all"
1414
}

terraform-aws-github-runner/terraform_migrations/local_ops.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function move_state() {
1616
function validate_module() {
1717
cd "${1}"
1818
terraform init
19-
tflint --module
19+
tflint --call-module-type=all
2020
terraform validate
2121
cd -
2222
}

0 commit comments

Comments
 (0)