Skip to content

Commit 71050bb

Browse files
committed
use digests for all GH actions
Signed-off-by: Tim Ramlot <[email protected]>
1 parent bf42fdd commit 71050bb

File tree

2 files changed

+25
-21
lines changed

2 files changed

+25
-21
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
id-token: write # needed for keyless signing & google auth
1717

1818
steps:
19-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2020

2121
- uses: ./.github/actions/repo_access
2222
with:
@@ -26,13 +26,13 @@ jobs:
2626
run: |
2727
make print-go-version >> "$GITHUB_OUTPUT"
2828
29-
- uses: docker/login-action@v3
29+
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
3030
with:
3131
registry: quay.io
3232
username: ${{ secrets.QUAY_USERNAME }}
3333
password: ${{ secrets.QUAY_PASSWORD }}
3434

35-
- uses: actions/setup-go@v6
35+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
3636
with:
3737
go-version: ${{ steps.go-version.outputs.result }}
3838

.github/workflows/tests.yaml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ jobs:
99
timeout-minutes: 15
1010

1111
steps:
12-
- uses: actions/checkout@v5
13-
with:
14-
fetch-depth: 0
12+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
13+
# Adding `fetch-depth: 0` makes sure tags are also fetched. We need
14+
# the tags so `git describe` returns a valid version.
15+
# see https://github.com/actions/checkout/issues/701 for extra info about this option
16+
with: { fetch-depth: 0 }
1517

1618
- uses: ./.github/actions/repo_access
1719
with:
@@ -21,11 +23,11 @@ jobs:
2123
run: |
2224
make print-go-version >> "$GITHUB_OUTPUT"
2325
24-
- uses: actions/setup-go@v6
26+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
2527
with:
2628
go-version: ${{ steps.go-version.outputs.result }}
2729

28-
- uses: actions/cache@v4
30+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
2931
with:
3032
path: _bin/downloaded
3133
key: downloaded-${{ runner.os }}-${{ hashFiles('klone.yaml') }}-verify
@@ -41,9 +43,11 @@ jobs:
4143
id-token: write # needed for google auth
4244

4345
steps:
44-
- uses: actions/checkout@v5
45-
with:
46-
fetch-depth: 0
46+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
47+
# Adding `fetch-depth: 0` makes sure tags are also fetched. We need
48+
# the tags so `git describe` returns a valid version.
49+
# see https://github.com/actions/checkout/issues/701 for extra info about this option
50+
with: { fetch-depth: 0 }
4751

4852
- uses: ./.github/actions/repo_access
4953
with:
@@ -53,11 +57,11 @@ jobs:
5357
run: |
5458
make print-go-version >> "$GITHUB_OUTPUT"
5559
56-
- uses: actions/setup-go@v6
60+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
5761
with:
5862
go-version: ${{ steps.go-version.outputs.result }}
5963

60-
- uses: actions/cache@v4
64+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
6165
with:
6266
path: _bin/downloaded
6367
key: downloaded-${{ runner.os }}-${{ hashFiles('klone.yaml') }}-test-unit
@@ -68,23 +72,23 @@ jobs:
6872
if: contains(github.event.pull_request.labels.*.name, 'test-e2e')
6973
runs-on: ubuntu-latest
7074
steps:
71-
- uses: actions/checkout@v5
72-
with:
73-
fetch-depth: 0
75+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
76+
# Adding `fetch-depth: 0` makes sure tags are also fetched. We need
77+
# the tags so `git describe` returns a valid version.
78+
# see https://github.com/actions/checkout/issues/701 for extra info about this option
79+
with: { fetch-depth: 0 }
7480

7581
- uses: ./.github/actions/repo_access
7682
with:
7783
DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB: ${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }}
7884

7985
- name: Authenticate to Google Cloud
80-
id: auth
81-
uses: google-github-actions/auth@v3
86+
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
8287
with:
8388
credentials_json: '${{ secrets.GCP_SA_KEY }}'
8489

8590
- name: Set up gcloud
86-
id: setup-gcloud
87-
uses: google-github-actions/setup-gcloud@v3
91+
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # v3.0.1
8892
with:
8993
install_components: "gke-gcloud-auth-plugin"
9094
project_id: machineidentitysecurity-jsci-e
@@ -96,7 +100,7 @@ jobs:
96100
run: |
97101
make print-go-version >> "$GITHUB_OUTPUT"
98102
99-
- uses: actions/setup-go@v6
103+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
100104
with:
101105
go-version: ${{ steps.go-version.outputs.result }}
102106

0 commit comments

Comments
 (0)