File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 26
26
- name : Validate the configuration
27
27
run : terraform validate
28
28
29
+ tflint :
30
+ name : tflint
31
+ runs-on : ubuntu-latest
32
+ needs : [validate]
33
+ steps :
34
+ - name : Checkout code
35
+ uses : actions/checkout@v3
36
+ - uses : actions/cache@v3
37
+ name : Cache plugin dir
38
+ with :
39
+ path : ~/.tflint.d/plugins
40
+ key : ${{ runner.os }}-tflint
41
+ - uses : terraform-linters/setup-tflint@v2
42
+ name : Setup TFLint
43
+ with :
44
+ github_token : ${{ secrets.GITHUB_TOKEN }}
45
+ tflint_version : latest
46
+ - name : Run TFLint
47
+ run : |
48
+ tflint --init
49
+ tflint -f compact
50
+
29
51
tfsec :
30
52
name : tfsec
31
53
runs-on : ubuntu-latest
39
61
caller-identity-check :
40
62
if : ${{ github.event_name == 'pull_request' }}
41
63
name : Return the IAM user
42
- needs : [validate, tfsec]
64
+ needs : [validate, tflint, tfsec]
43
65
permissions :
44
66
contents : read
45
67
id-token : write
You can’t perform that action at this time.
0 commit comments