Skip to content

Commit 1f74cc5

Browse files
authored
fix: Update CI workflow versions to remove deprecated runtime warnings (#28)
1 parent c58ba7b commit 1f74cc5

File tree

6 files changed

+43
-19
lines changed

6 files changed

+43
-19
lines changed

.github/workflows/lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
lock:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: dessant/lock-threads@v4
11+
- uses: dessant/lock-threads@v5
1212
with:
1313
github-token: ${{ secrets.GITHUB_TOKEN }}
1414
issue-comment: >

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
# Please look up the latest version from
1616
# https://github.com/amannn/action-semantic-pull-request/releases
17-
- uses: amannn/action-semantic-pull-request@v5.0.2
17+
- uses: amannn/action-semantic-pull-request@v5.4.0
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
with:

.github/workflows/pre-commit.yml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ name: Pre-Commit
33
on:
44
pull_request:
55
branches:
6+
- main
67
- master
78

89
env:
910
TERRAFORM_DOCS_VERSION: v0.16.0
11+
TFLINT_VERSION: v0.50.3
1012

1113
jobs:
1214
collectInputs:
@@ -16,11 +18,11 @@ jobs:
1618
directories: ${{ steps.dirs.outputs.directories }}
1719
steps:
1820
- name: Checkout
19-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2022

2123
- name: Get root directories
2224
id: dirs
23-
uses: clowdhaus/terraform-composite-actions/directories@v1.8.0
25+
uses: clowdhaus/terraform-composite-actions/directories@v1.9.0
2426

2527
preCommitMinVersions:
2628
name: Min TF pre-commit
@@ -30,49 +32,68 @@ jobs:
3032
matrix:
3133
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
3234
steps:
35+
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
36+
- name: Delete huge unnecessary tools folder
37+
run: |
38+
rm -rf /opt/hostedtoolcache/CodeQL
39+
rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk
40+
rm -rf /opt/hostedtoolcache/Ruby
41+
rm -rf /opt/hostedtoolcache/go
42+
3343
- name: Checkout
34-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
3545

3646
- name: Terraform min/max versions
3747
id: minMax
38-
uses: clowdhaus/terraform-min-max@v1.2.1
48+
uses: clowdhaus/terraform-min-max@v1.3.0
3949
with:
4050
directory: ${{ matrix.directory }}
4151

4252
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
4353
# Run only validate pre-commit check on min version supported
4454
if: ${{ matrix.directory != '.' }}
45-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
55+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.9.0
4656
with:
4757
terraform-version: ${{ steps.minMax.outputs.minVersion }}
58+
tflint-version: ${{ env.TFLINT_VERSION }}
4859
args: 'terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'
4960

5061
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
5162
# Run only validate pre-commit check on min version supported
5263
if: ${{ matrix.directory == '.' }}
53-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
64+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.9.0
5465
with:
5566
terraform-version: ${{ steps.minMax.outputs.minVersion }}
67+
tflint-version: ${{ env.TFLINT_VERSION }}
5668
args: 'terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)'
5769

5870
preCommitMaxVersion:
5971
name: Max TF pre-commit
6072
runs-on: ubuntu-latest
6173
needs: collectInputs
6274
steps:
75+
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
76+
- name: Delete huge unnecessary tools folder
77+
run: |
78+
rm -rf /opt/hostedtoolcache/CodeQL
79+
rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk
80+
rm -rf /opt/hostedtoolcache/Ruby
81+
rm -rf /opt/hostedtoolcache/go
82+
6383
- name: Checkout
64-
uses: actions/checkout@v3
84+
uses: actions/checkout@v4
6585
with:
6686
ref: ${{ github.event.pull_request.head.ref }}
6787
repository: ${{github.event.pull_request.head.repo.full_name}}
6888

6989
- name: Terraform min/max versions
7090
id: minMax
71-
uses: clowdhaus/terraform-min-max@v1.2.1
91+
uses: clowdhaus/terraform-min-max@v1.3.0
7292

7393
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
74-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
94+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.9.0
7595
with:
7696
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
97+
tflint-version: ${{ env.TFLINT_VERSION }}
7798
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }}
7899
install-hcledit: true

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7+
- main
78
- master
89
paths:
910
- '**/*.tpl'
@@ -19,18 +20,18 @@ jobs:
1920
if: github.repository_owner == 'terraform-aws-modules'
2021
steps:
2122
- name: Checkout
22-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2324
with:
2425
persist-credentials: false
2526
fetch-depth: 0
2627

2728
- name: Release
28-
uses: cycjimmy/semantic-release-action@v3
29+
uses: cycjimmy/semantic-release-action@v4
2930
with:
30-
semantic_version: 18.0.0
31+
semantic_version: 23.0.2
3132
extra_plugins: |
32-
@semantic-release/[email protected].0
33-
@semantic-release/[email protected].0
34-
conventional-changelog-conventionalcommits@4.6.3
33+
@semantic-release/[email protected].3
34+
@semantic-release/[email protected].1
35+
conventional-changelog-conventionalcommits@7.0.2
3536
env:
3637
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

.github/workflows/stale-actions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v6
10+
- uses: actions/stale@v9
1111
with:
1212
repo-token: ${{ secrets.GITHUB_TOKEN }}
1313
# Staling issues and PR's

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ repos:
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each
7-
- id: terraform_validate
87
- id: terraform_docs
98
args:
109
- '--args=--lockfile=false'
@@ -23,8 +22,11 @@ repos:
2322
- '--args=--only=terraform_required_providers'
2423
- '--args=--only=terraform_standard_module_structure'
2524
- '--args=--only=terraform_workspace_remote'
25+
- '--args=--only=terraform_unused_required_providers'
26+
- id: terraform_validate
2627
- repo: https://github.com/pre-commit/pre-commit-hooks
2728
rev: v4.5.0
2829
hooks:
2930
- id: check-merge-conflict
3031
- id: end-of-file-fixer
32+
- id: trailing-whitespace

0 commit comments

Comments
 (0)