Skip to content

Commit a4360c6

Browse files
committed
workflows: use explicit hash for github actions
Switching to explicit hash; be more secure against possible future malicious versions[1]. [1] https://docs.github.com/en/actions/reference/ security/secure-use#using-third-party-actions Signed-off-by: Shachar Sharon <ssharon@redhat.com>
1 parent c1d9ccf commit a4360c6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/setup-go@v6
17+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
1818
with:
1919
go-version: "stable"
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2121
- name: Build
2222
run: make
2323
# Run static/code-quality checks
2424
check:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/setup-go@v6
27+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
2828
with:
2929
go-version: "stable"
30-
- uses: actions/checkout@v5
30+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
3131
- name: Install build tools
3232
run: make build-tools
3333
- name: Run checks
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
if: github.event_name == 'pull_request'
3838
steps:
39-
- uses: actions/checkout@v5
39+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
4040
with:
4141
fetch-depth: 0
4242
ref: ${{ github.event.pull_request.head.sha }}
@@ -48,10 +48,10 @@ jobs:
4848
needs: [build, check]
4949
runs-on: ubuntu-latest
5050
steps:
51-
- uses: actions/setup-go@v6
51+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
5252
with:
5353
go-version: "stable"
54-
- uses: actions/checkout@v5
54+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
5555
- name: Run tests
5656
run: make test
5757
podmanbuild:
@@ -60,7 +60,7 @@ jobs:
6060
# image build step, so no need to do it twice.
6161
if: github.event_name == 'pull_request'
6262
steps:
63-
- uses: actions/checkout@v5
63+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
6464
- name: Install fuse-overlayfs
6565
run: sudo apt-get -y install fuse-overlayfs
6666
- name: Setup podman config
@@ -88,7 +88,7 @@ jobs:
8888
# image build step, so no need to do it twice.
8989
if: github.event_name == 'pull_request'
9090
steps:
91-
- uses: actions/checkout@v5
91+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
9292
- name: build container image
9393
# note: forcing use of podman here since we are
9494
# using podman explicitly for the push job
@@ -99,7 +99,7 @@ jobs:
9999
runs-on: ubuntu-latest
100100
if: github.event_name == 'push'
101101
steps:
102-
- uses: actions/checkout@v5
102+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
103103
- name: log in to quay.io
104104
# using docker for now, since podman has an issue with space
105105
# consumption: image build fails with no space left on device...

0 commit comments

Comments
 (0)