File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 44
44
# Connect to Semgrep AppSec Platform through your SEMGREP_APP_TOKEN.
45
45
# Generate a token from Semgrep AppSec Platform > Settings
46
46
# and add it to your GitHub secrets.
47
- SEMGREP_APP_TOKEN : ${{ secrets.SEMGREP_APP_TOKEN }}
47
+ SEMGREP_APP_TOKEN : ${{ secrets.SEMGREP_APP_TOKEN }}
Original file line number Diff line number Diff line change 74
74
id : validate
75
75
run : terraform validate
76
76
77
+ - uses : actions/cache@v4
78
+ name : Cache plugin dir
79
+ with :
80
+ path : ~/.tflint.d/plugins
81
+ key : ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
82
+
83
+ - uses : terraform-linters/setup-tflint@v4
84
+ name : Setup TFLint
85
+ with :
86
+ tflint_version : v0.52.0
87
+ - name : Show version
88
+ run : tflint --version
89
+
90
+ - name : Init TFLint
91
+ run : tflint --init
92
+ env :
93
+ # https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
94
+ GITHUB_TOKEN : ${{ github.token }}
95
+
96
+ - name : Run TFLint
97
+ run : tflint -f compact
98
+
77
99
- name : Terraform plan [pull_request]
78
100
id : plan-pr
79
101
if : github.event_name == 'pull_request'
You can’t perform that action at this time.
0 commit comments