@@ -13,9 +13,7 @@ permissions: read-all
1313
1414env :
1515 TERRAFORM_DOCS_VERSION : v0.16.0
16- TFSEC_VERSION : v1.28.1
17- TF_PLUGIN_CACHE_DIR : ${{ github.workspace }}/.terraform.d/plugin-cache
18- TFLINT_VERSION : v0.45.0
16+ TFLINT_VERSION : v0.50.3
1917
2018concurrency :
2119 group : ' ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
3331
3432 - name : Get root directories
3533 id : dirs
36- uses : clowdhaus/terraform-composite-actions/directories@v1.8.3
34+ uses : clowdhaus/terraform-composite-actions/directories@v1.9.0
3735
3836 preCommitMinVersions :
3937 name : Min TF pre-commit
4947 - name : Checkout
5048 uses : actions/checkout@v4
5149
52- - uses : dorny/paths-filter@v2
50+ - uses : dorny/paths-filter@v3
5351 id : changes
5452 with :
5553 # We only need to check Terraform files for the current directory
@@ -59,35 +57,23 @@ jobs:
5957 src:
6058 - '${{ matrix.directory }}/*.tf'
6159
62- - name : Config Terraform plugin cache
63- if : steps.changes.outputs.src== 'true'
64- run : mkdir --parents ${{ env.TERRAFORM_DOCS_VERSION }}
65-
66- - name : Cache Terraform
67- uses : actions/cache@v3
68- if : steps.changes.outputs.src== 'true'
69- with :
70- path : ${{ env.TERRAFORM_DOCS_VERSION }}
71- key : ${{ runner.os }}-terraform-${{ hashFiles('**/.terraform.lock.hcl') }}
72- restore-keys : ${{ runner.os }}-terraform-
73-
7460 - name : Terraform min/max versions
75- uses : clowdhaus/terraform-min-max@v1.2.7
61+ uses : clowdhaus/terraform-min-max@v1.3.0
7662 if : steps.changes.outputs.src== 'true'
7763 id : minMax
7864 with :
7965 directory : ${{ matrix.directory }}
8066
8167 - name : Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
82- uses : clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
68+ uses : clowdhaus/terraform-composite-actions/pre-commit@v1.9.0
8369 # Run only validate pre-commit check on min version supported
8470 if : ${{ matrix.directory != '.' && steps.changes.outputs.src== 'true' }}
8571 with :
8672 terraform-version : ${{ steps.minMax.outputs.minVersion }}
8773 args : ' terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'
8874
8975 - name : Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
90- uses : clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
76+ uses : clowdhaus/terraform-composite-actions/pre-commit@v1.9.0
9177 # Run only validate pre-commit check on min version supported
9278 if : ${{ matrix.directory == '.' && steps.changes.outputs.src== 'true' }}
9379 with :
@@ -105,32 +91,20 @@ jobs:
10591 - name : Checkout
10692 uses : actions/checkout@v4
10793
108- - uses : dorny/paths-filter@v2
94+ - uses : dorny/paths-filter@v3
10995 id : changes
11096 with :
11197 filters : |
11298 src:
11399 - '**/*.tf'
114100
115- - name : Config Terraform plugin cache
116- if : steps.changes.outputs.src== 'true'
117- run : mkdir --parents ${{ env.TERRAFORM_DOCS_VERSION }}
118-
119- - name : Cache Terraform
120- uses : actions/cache@v3
121- if : steps.changes.outputs.src== 'true'
122- with :
123- path : ${{ env.TF_PLUGIN_CACHE_DIR }}
124- key : ${{ runner.os }}-terraform-${{ hashFiles('**/.terraform.lock.hcl') }}
125- restore-keys : ${{ runner.os }}-terraform-
126-
127101 - name : Terraform min/max versions
128102 id : minMax
129- uses : clowdhaus/terraform-min-max@v1.2.7
103+ uses : clowdhaus/terraform-min-max@v1.3.0
130104 if : steps.changes.outputs.src== 'true'
131105
132106 - name : Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
133- uses : clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
107+ uses : clowdhaus/terraform-composite-actions/pre-commit@v1.9.0
134108 if : steps.changes.outputs.src== 'true'
135109 with :
136110 terraform-version : ${{ steps.minMax.outputs.maxVersion }}
0 commit comments