fix: Terraform validate for submodules (#172)

This commit is contained in:
Anton Babenko 2021-02-20 20:18:07 +01:00 committed by GitHub
commit 827af52cd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
repos: repos:
- repo: git://github.com/pre-commit/pre-commit-hooks - repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0 rev: v3.4.0
hooks: hooks:
- id: check-yaml - id: check-yaml
- id: end-of-file-fixer - id: end-of-file-fixer
@ -9,7 +9,7 @@ repos:
- id: check-merge-conflict - id: check-merge-conflict
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
- repo: git://github.com/jumanjihouse/pre-commit-hooks - repo: git://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.4 rev: 2.1.5
hooks: hooks:
- id: shfmt - id: shfmt
args: ['-l', '-i', '2', '-ci', '-sr', '-w'] args: ['-l', '-i', '2', '-ci', '-sr', '-w']

View file

@ -36,6 +36,7 @@
- id: terraform_validate - id: terraform_validate
name: Terraform validate name: Terraform validate
description: Validates all Terraform configuration files. description: Validates all Terraform configuration files.
require_serial: true
entry: terraform_validate.sh entry: terraform_validate.sh
language: script language: script
files: (\.tf|\.tfvars)$ files: (\.tf|\.tfvars)$