Skip to content

Commit c698189

Browse files
mbeacombonclay7
andauthored
Update tflint aws plugin and fix pre-commit to use config file (#97)
* Fix #96 - Update tflint aws plugin and fix pre-commit to use config file * Update tflint version used in workflow --------- Co-authored-by: Rodrigue Koffi <[email protected]>
1 parent 331ee53 commit c698189

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
TERRAFORM_DOCS_VERSION: v0.16.0
1414
TFSEC_VERSION: v1.22.0
1515
TF_PLUGIN_CACHE_DIR: ${{ github.workspace }}/.terraform.d/plugin-cache
16-
TFLINT_VERSION: v0.38.1
16+
TFLINT_VERSION: v0.44.1
1717

1818
concurrency:
1919
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'

.pre-commit-config.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,7 @@ repos:
2020
exclude: deploy
2121
- id: terraform_tflint
2222
args:
23-
- '--args=--only=terraform_deprecated_interpolation'
24-
- '--args=--only=terraform_deprecated_index'
25-
- '--args=--only=terraform_unused_declarations'
26-
- '--args=--only=terraform_comment_syntax'
27-
- '--args=--only=terraform_documented_outputs'
28-
- '--args=--only=terraform_documented_variables'
29-
- '--args=--only=terraform_typed_variables'
30-
- '--args=--only=terraform_module_pinned_source'
31-
- '--args=--only=terraform_naming_convention'
32-
- '--args=--only=terraform_required_version'
33-
- '--args=--only=terraform_required_providers'
34-
- '--args=--only=terraform_standard_module_structure'
35-
- '--args=--only=terraform_workspace_remote'
23+
- '--args=--config=__GIT_WORKING_DIR__/.tflint.hcl'
3624
- id: terraform_tfsec
3725
files: ^examples/ # only scan `examples/*` which are the implementation
3826
args:

.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
plugin "aws" {
55
enabled = true
6-
version = "0.14.0"
6+
version = "0.21.1"
77
source = "github.com/terraform-linters/tflint-ruleset-aws"
88
}
99

0 commit comments

Comments
 (0)