88
99permissions :
1010 contents : read
11- pull-requests : write
1211
1312env :
1413 AWS_REGION : eu-west-1
2423 steps :
2524 - name : " Checkout"
2625 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+ with :
27+ persist-credentials : false
2728 - name : " Fake zip files" # Validate will fail if it cannot find the zip files
2829 run : |
2930 touch lambdas/functions/webhook/webhook.zip
4748 run : apk add --no-cache tar
4849 continue-on-error : true
4950 - if : contains(matrix.terraform, '1.5.')
50- uses : actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
51+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
5152 name : Cache TFLint plugin dir
5253 with :
5354 path : ~/.tflint.d/plugins
9091 image : hashicorp/terraform:${{ matrix.terraform }}
9192 steps :
9293 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
94+ with :
95+ persist-credentials : false
9396 - name : terraform init
9497 run : terraform init -get -backend=false -input=false
9598 - if : contains(matrix.terraform, '1.3.')
@@ -106,14 +109,14 @@ jobs:
106109 run : apk add --no-cache tar
107110 continue-on-error : true
108111 - if : contains(matrix.terraform, '1.3.')
109- uses : actions/cache@v4
112+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
110113 name : Cache TFLint plugin dir
111114 with :
112115 path : ~/.tflint.d/plugins
113116 key : tflint-${{ hashFiles('.tflint.hcl') }}
114117 - if : contains(matrix.terraform, '1.3.')
115118 name : Setup TFLint
116- uses : terraform-linters/setup-tflint@v4
119+ uses : terraform-linters/setup-tflint@8093687ecc9dcbfa88d07c103ad4176739a7287e # v4.1.0
117120 with :
118121 github_token : ${{ secrets.GITHUB_TOKEN }}
119122 - if : contains(matrix.terraform, '1.3.')
@@ -145,6 +148,8 @@ jobs:
145148 image : hashicorp/terraform:${{ matrix.terraform }}
146149 steps :
147150 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
151+ with :
152+ persist-credentials : false
148153 - name : terraform init
149154 run : terraform init -get -backend=false -input=false
150155 - if : contains(matrix.terraform, '1.5.')
@@ -161,14 +166,14 @@ jobs:
161166 run : apk add --no-cache tar
162167 continue-on-error : true
163168 - if : contains(matrix.terraform, '1.5.')
164- uses : actions/cache@v4
169+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
165170 name : Cache TFLint plugin dir
166171 with :
167172 path : ~/.tflint.d/plugins
168173 key : tflint-${{ hashFiles('.tflint.hcl') }}
169174 - if : contains(matrix.terraform, '1.5.')
170175 name : Setup TFLint
171- uses : terraform-linters/setup-tflint@v4
176+ uses : terraform-linters/setup-tflint@8093687ecc9dcbfa88d07c103ad4176739a7287e # v4.1.0
172177 with :
173178 github_token : ${{ secrets.GITHUB_TOKEN }}
174179 - if : contains(matrix.terraform, '1.5.')
0 commit comments