-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (41 loc) · 1.16 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: "Terraform-MongoDB-User Module"
on:
pull_request:
branches:
- main
jobs:
terraform-checks:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.6.3
- uses: terraform-linters/setup-tflint@v3
name: Setup TFLint
with:
tflint_version: v0.44.1
- name: Terraform Init
id: tf-init
run: terraform init
- name: Terraform Validate
id: tf-validate
run: terraform validate
- name: Terraform Format Check
id: tf-fmt-check
run: terraform fmt -recursive -check
continue-on-error: true
- name: Show version
run: tflint --version
- name: Init TFLint
run: tflint --init
env:
# https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
GITHUB_TOKEN: ${{ github.token }}
- name: Run TFLint
run: tflint -f compact
- name: TFSec
uses: aquasecurity/[email protected]
with:
soft_fail: true