Skip to content

Commit d8dddd2

Browse files
authored
Merge pull request #5 from Lendable/ticket/DEVOPS-11460-aikido-tf-aws-vpc
fix(DEVOPS-11460): Pin third-party actions and drop persisted credentials
2 parents 3629355 + 1c1d5f0 commit d8dddd2

4 files changed

Lines changed: 16 additions & 11 deletions

File tree

.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@v5
11+
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
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@v6.1.1
17+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
with:

.github/workflows/pre-commit.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v5
22+
with:
23+
persist-credentials: false
2224

2325
- name: Get root directories
2426
id: dirs
25-
uses: clowdhaus/terraform-composite-actions/directories@v1.14.0
27+
uses: clowdhaus/terraform-composite-actions/directories@462243b714d762cbcac6732098e9fdb4ab236cb7 # v1.14.0
2628

2729
preCommitMinVersions:
2830
name: Min TF pre-commit
@@ -33,7 +35,7 @@ jobs:
3335
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
3436
steps:
3537
- name: Install rmz
36-
uses: jaxxstorm/action-install-gh-release@v2.1.0
38+
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
3739
with:
3840
repo: SUPERCILEX/fuc
3941
asset-name: x86_64-unknown-linux-gnu-rmz
@@ -64,17 +66,19 @@ jobs:
6466
6567
- name: Checkout
6668
uses: actions/checkout@v5
69+
with:
70+
persist-credentials: false
6771

6872
- name: Terraform min/max versions
6973
id: minMax
70-
uses: clowdhaus/terraform-min-max@v2.1.0
74+
uses: clowdhaus/terraform-min-max@a86951cbe89f4d15caec805f36aa1dd68863ae32 # v2.1.0
7175
with:
7276
directory: ${{ matrix.directory }}
7377

7478
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
7579
# Run only validate pre-commit check on min version supported
7680
if: ${{ matrix.directory != '.' }}
77-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.14.0
81+
uses: clowdhaus/terraform-composite-actions/pre-commit@462243b714d762cbcac6732098e9fdb4ab236cb7 # v1.14.0
7882
with:
7983
terraform-version: ${{ steps.minMax.outputs.minVersion }}
8084
tflint-version: ${{ env.TFLINT_VERSION }}
@@ -83,7 +87,7 @@ jobs:
8387
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
8488
# Run only validate pre-commit check on min version supported
8589
if: ${{ matrix.directory == '.' }}
86-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.14.0
90+
uses: clowdhaus/terraform-composite-actions/pre-commit@462243b714d762cbcac6732098e9fdb4ab236cb7 # v1.14.0
8791
with:
8892
terraform-version: ${{ steps.minMax.outputs.minVersion }}
8993
tflint-version: ${{ env.TFLINT_VERSION }}
@@ -95,7 +99,7 @@ jobs:
9599
needs: collectInputs
96100
steps:
97101
- name: Install rmz
98-
uses: jaxxstorm/action-install-gh-release@v2.1.0
102+
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
99103
with:
100104
repo: SUPERCILEX/fuc
101105
asset-name: x86_64-unknown-linux-gnu-rmz
@@ -147,20 +151,21 @@ jobs:
147151
- name: Checkout
148152
uses: actions/checkout@v5
149153
with:
154+
persist-credentials: false
150155
ref: ${{ github.event.pull_request.head.ref }}
151156
repository: ${{github.event.pull_request.head.repo.full_name}}
152157

153158
- name: Terraform min/max versions
154159
id: minMax
155-
uses: clowdhaus/terraform-min-max@v2.1.0
160+
uses: clowdhaus/terraform-min-max@a86951cbe89f4d15caec805f36aa1dd68863ae32 # v2.1.0
156161

157162
- name: Hide template dir
158163
# Special to this repo, we don't want to check this dir
159164
if: ${{ github.repository == 'terraform-aws-modules/terraform-aws-security-group' }}
160165
run: rm -rf modules/_templates
161166

162167
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
163-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.14.0
168+
uses: clowdhaus/terraform-composite-actions/pre-commit@462243b714d762cbcac6732098e9fdb4ab236cb7 # v1.14.0
164169
with:
165170
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
166171
tflint-version: ${{ env.TFLINT_VERSION }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
conventional-changelog-conventionalcommits@9.1.0
3939
4040
- name: Release
41-
uses: cycjimmy/semantic-release-action@v5
41+
uses: cycjimmy/semantic-release-action@ba330626c4750c19d8299de843f05c7aa5574f62 # v5.0.2
4242
with:
4343
semantic_version: 25.0.0
4444
env:

0 commit comments

Comments
 (0)