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 <bonclay7@users.noreply.github.com>
This commit is contained in:
Mark Beacom
2023-01-27 12:38:32 -05:00
committed by GitHub
parent 331ee539a2
commit c698189940
3 changed files with 3 additions and 15 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ env:
TERRAFORM_DOCS_VERSION: v0.16.0 TERRAFORM_DOCS_VERSION: v0.16.0
TFSEC_VERSION: v1.22.0 TFSEC_VERSION: v1.22.0
TF_PLUGIN_CACHE_DIR: ${{ github.workspace }}/.terraform.d/plugin-cache TF_PLUGIN_CACHE_DIR: ${{ github.workspace }}/.terraform.d/plugin-cache
TFLINT_VERSION: v0.38.1 TFLINT_VERSION: v0.44.1
concurrency: concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
+1 -13
View File
@@ -20,19 +20,7 @@ repos:
exclude: deploy exclude: deploy
- id: terraform_tflint - id: terraform_tflint
args: args:
- '--args=--only=terraform_deprecated_interpolation' - '--args=--config=__GIT_WORKING_DIR__/.tflint.hcl'
- '--args=--only=terraform_deprecated_index'
- '--args=--only=terraform_unused_declarations'
- '--args=--only=terraform_comment_syntax'
- '--args=--only=terraform_documented_outputs'
- '--args=--only=terraform_documented_variables'
- '--args=--only=terraform_typed_variables'
- '--args=--only=terraform_module_pinned_source'
- '--args=--only=terraform_naming_convention'
- '--args=--only=terraform_required_version'
- '--args=--only=terraform_required_providers'
- '--args=--only=terraform_standard_module_structure'
- '--args=--only=terraform_workspace_remote'
- id: terraform_tfsec - id: terraform_tfsec
files: ^examples/ # only scan `examples/*` which are the implementation files: ^examples/ # only scan `examples/*` which are the implementation
args: args:
+1 -1
View File
@@ -3,7 +3,7 @@
plugin "aws" { plugin "aws" {
enabled = true enabled = true
version = "0.14.0" version = "0.21.1"
source = "github.com/terraform-linters/tflint-ruleset-aws" source = "github.com/terraform-linters/tflint-ruleset-aws"
} }