Skip to content

Commit 3f88566

Browse files
committed
tflint and tfsec
1 parent b145930 commit 3f88566

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,14 @@ jobs:
1717
- name: Validate
1818
run: terraform validate
1919
- name: Formatting
20-
run: terraform fmt -check
20+
run: terraform fmt -recursive -check -diff -no-color
21+
# https://github.com/marketplace/actions/setup-tflint
22+
- name: Lint
23+
uses: terraform-linters/setup-tflint@v3
24+
with:
25+
tflint_version: latest
26+
- id: tflint
27+
run: tflint --recursive --format compact
28+
# https://github.com/marketplace/actions/tfsec-action
29+
- name: tfsec
30+
uses: aquasecurity/tfsec-action@v1.0.0

0 commit comments

Comments
 (0)