Skip to content

Commit 48a91f7

Browse files
committed
Pin GH Actions to commit sha
1 parent d4a5109 commit 48a91f7

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/fossa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
# The FOSSA token is shared between all repos in Rancher's GH org. It can be
2121
# used directly and there is no need to request specific access to EIO.
2222
- name: Read FOSSA token
23-
uses: rancher-eio/read-vault-secrets@main
23+
uses: rancher-eio/read-vault-secrets@0da85151ad1f19ed7986c41587e45aac1ace74b6 # v3
2424
with:
2525
secrets: |
2626
secret/data/github/org/rancher/fossa/push token | FOSSA_API_KEY_PUSH_ONLY
2727
2828
- name: FOSSA scan
29-
uses: fossas/fossa-action@main
29+
uses: fossas/fossa-action@ff70fe9fe17cbd2040648f1c45e8ec4e4884dcf3 # v1.9.0
3030
with:
3131
api-key: ${{ env.FOSSA_API_KEY_PUSH_ONLY }}
3232
# Only runs the scan and do not provide/returns any results back to the

.github/workflows/release.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
outputs:
2222
release_pr: ${{ steps.release-please.outputs.pr }}
2323
steps:
24-
- uses: googleapis/release-please-action@v4
24+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4
2525
id: release-please
2626
with:
2727
release-type: terraform-module
@@ -62,7 +62,7 @@ jobs:
6262
echo "Error: Let's Encrypt CA is not being used for verification."
6363
exit 1
6464
fi
65-
- uses: actions/github-script@v8
65+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
6666
if: steps.release-please.outputs.pr
6767
with:
6868
github-token: ${{secrets.GITHUB_TOKEN}}
@@ -80,12 +80,12 @@ jobs:
8080
if: needs.release.outputs.release_pr
8181
runs-on: ubuntu-latest
8282
steps:
83-
- uses: actions/checkout@v5
83+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
8484
with:
8585
token: ${{secrets.GITHUB_TOKEN}}
8686
fetch-depth: 0
8787
- id: aws-creds
88-
uses: aws-actions/configure-aws-credentials@v6
88+
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6
8989
with:
9090
role-to-assume: ${{env.AWS_ROLE}}
9191
role-session-name: ${{github.run_id}}
@@ -123,12 +123,12 @@ jobs:
123123
if: always() && needs.release.outputs.release_pr
124124
runs-on: ubuntu-latest
125125
steps:
126-
- uses: actions/checkout@v5
126+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
127127
with:
128128
token: ${{secrets.GITHUB_TOKEN}}
129129
fetch-depth: 0
130130
- id: aws-creds
131-
uses: aws-actions/configure-aws-credentials@v6
131+
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6
132132
with:
133133
role-to-assume: ${{env.AWS_ROLE}}
134134
role-session-name: ${{github.run_id}}-cleanup
@@ -160,7 +160,7 @@ jobs:
160160
if: success() && needs.release.outputs.release_pr #Ensure the test jobs succeeded, and that a release PR was created.
161161
runs-on: ubuntu-latest
162162
steps:
163-
- uses: actions/github-script@v8
163+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
164164
with:
165165
github-token: ${{secrets.GITHUB_TOKEN}}
166166
script: |

.github/workflows/validate.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: 'Terraform'
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v5
17+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1818
with:
1919
fetch-depth: 0
2020
- name: install-nix
@@ -33,7 +33,7 @@ jobs:
3333
name: 'Lint Workflows'
3434
runs-on: ubuntu-latest
3535
steps:
36-
- uses: actions/checkout@v5
36+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
3737
with:
3838
fetch-depth: 0
3939
- name: install-nix
@@ -49,7 +49,7 @@ jobs:
4949
shellcheck:
5050
runs-on: ubuntu-latest
5151
steps:
52-
- uses: actions/checkout@v5
52+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
5353
with:
5454
fetch-depth: 0
5555
- name: install-nix
@@ -69,7 +69,7 @@ jobs:
6969
validate-commit-message:
7070
runs-on: ubuntu-latest
7171
steps:
72-
- uses: actions/checkout@v5
72+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
7373
with:
7474
fetch-depth: 0 # fetch all history so that we can validate the commit messages
7575
- name: install-nix
@@ -153,7 +153,7 @@ jobs:
153153
name: 'Scan for Secrets'
154154
runs-on: ubuntu-latest
155155
steps:
156-
- uses: actions/checkout@v5
156+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
157157
with:
158158
fetch-depth: 0
159159
- name: install-nix
@@ -213,7 +213,7 @@ jobs:
213213
test-compile-check:
214214
runs-on: ubuntu-latest
215215
steps:
216-
- uses: actions/checkout@v5
216+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
217217
with:
218218
fetch-depth: 0
219219
- name: install-nix
@@ -231,7 +231,7 @@ jobs:
231231
lint-tests:
232232
runs-on: ubuntu-latest
233233
steps:
234-
- uses: actions/checkout@v5
234+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
235235
with:
236236
fetch-depth: 0
237237
- name: install-nix

0 commit comments

Comments
 (0)