8
8
9
9
permissions :
10
10
contents : read
11
- pull-requests : write
12
11
13
12
env :
14
13
AWS_REGION : eu-west-1
24
23
steps :
25
24
- name : " Checkout"
26
25
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
+ with :
27
+ persist-credentials : false
27
28
- name : " Fake zip files" # Validate will fail if it cannot find the zip files
28
29
run : |
29
30
touch lambdas/functions/webhook/webhook.zip
47
48
run : apk add --no-cache tar
48
49
continue-on-error : true
49
50
- if : contains(matrix.terraform, '1.5.')
50
- uses : actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
51
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
51
52
name : Cache TFLint plugin dir
52
53
with :
53
54
path : ~/.tflint.d/plugins
90
91
image : hashicorp/terraform:${{ matrix.terraform }}
91
92
steps :
92
93
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
94
+ with :
95
+ persist-credentials : false
93
96
- name : terraform init
94
97
run : terraform init -get -backend=false -input=false
95
98
- if : contains(matrix.terraform, '1.3.')
@@ -106,14 +109,14 @@ jobs:
106
109
run : apk add --no-cache tar
107
110
continue-on-error : true
108
111
- if : contains(matrix.terraform, '1.3.')
109
- uses : actions/cache@v4
112
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
110
113
name : Cache TFLint plugin dir
111
114
with :
112
115
path : ~/.tflint.d/plugins
113
116
key : tflint-${{ hashFiles('.tflint.hcl') }}
114
117
- if : contains(matrix.terraform, '1.3.')
115
118
name : Setup TFLint
116
- uses : terraform-linters/setup-tflint@v4
119
+ uses : terraform-linters/setup-tflint@8093687ecc9dcbfa88d07c103ad4176739a7287e # v4.1.0
117
120
with :
118
121
github_token : ${{ secrets.GITHUB_TOKEN }}
119
122
- if : contains(matrix.terraform, '1.3.')
@@ -145,6 +148,8 @@ jobs:
145
148
image : hashicorp/terraform:${{ matrix.terraform }}
146
149
steps :
147
150
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
151
+ with :
152
+ persist-credentials : false
148
153
- name : terraform init
149
154
run : terraform init -get -backend=false -input=false
150
155
- if : contains(matrix.terraform, '1.5.')
@@ -161,14 +166,14 @@ jobs:
161
166
run : apk add --no-cache tar
162
167
continue-on-error : true
163
168
- if : contains(matrix.terraform, '1.5.')
164
- uses : actions/cache@v4
169
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
165
170
name : Cache TFLint plugin dir
166
171
with :
167
172
path : ~/.tflint.d/plugins
168
173
key : tflint-${{ hashFiles('.tflint.hcl') }}
169
174
- if : contains(matrix.terraform, '1.5.')
170
175
name : Setup TFLint
171
- uses : terraform-linters/setup-tflint@v4
176
+ uses : terraform-linters/setup-tflint@8093687ecc9dcbfa88d07c103ad4176739a7287e # v4.1.0
172
177
with :
173
178
github_token : ${{ secrets.GITHUB_TOKEN }}
174
179
- if : contains(matrix.terraform, '1.5.')
0 commit comments