Skip to content

Commit 5b04bae

Browse files
committed
fix: Pin all GitHub Actions to specific commit SHAs
- Pin actions/checkout to v4.1.7 - Pin actions/setup-python to v5.2.0 - Pin actions/cache to v4.1.0 - Pin docker/setup-buildx-action to v3.7.1 - Pin docker/build-push-action to v6.9.0 This should resolve the CI failures by ensuring consistent action versions.
1 parent 95c6006 commit 5b04bae

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/docker-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
persist-credentials: false
2323

2424
- name: Set up Docker Buildx
25-
uses: docker/setup-buildx-action@v3
25+
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
2626

2727
- name: Log in to the Container registry
2828
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0

.github/workflows/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
permissions:
1212
contents: read
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1515
with:
1616
persist-credentials: false
1717

18-
- uses: actions/setup-python@v5.1.0
18+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
1919
with:
2020
python-version: '3.11'
2121
cache: 'pip'
2222

2323
- name: Cache shellcheck
2424
id: cache-shellcheck
25-
uses: actions/cache@v4
25+
uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
2626
with:
2727
path: /snap/bin/shellcheck
2828
key: ${{ runner.os }}-shellcheck
@@ -54,17 +54,17 @@ jobs:
5454
matrix:
5555
UBUNTU_VERSION: ["22.04"]
5656
steps:
57-
- uses: actions/checkout@v4
57+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5858
with:
5959
persist-credentials: false
6060

61-
- uses: actions/setup-python@v5.1.0
61+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
6262
with:
6363
python-version: '3.11'
6464
cache: 'pip'
6565

6666
- name: Cache LXD images
67-
uses: actions/cache@v4
67+
uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
6868
with:
6969
path: /var/snap/lxd/common/lxd/images
7070
key: ${{ runner.os }}-lxd-${{ matrix.UBUNTU_VERSION }}
@@ -130,17 +130,17 @@ jobs:
130130
matrix:
131131
UBUNTU_VERSION: ["22.04"]
132132
steps:
133-
- uses: actions/checkout@v4
133+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
134134
with:
135135
persist-credentials: false
136136

137-
- uses: actions/setup-python@v5.1.0
137+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
138138
with:
139139
python-version: '3.11'
140140
cache: 'pip'
141141

142142
- name: Set up Docker Buildx
143-
uses: docker/setup-buildx-action@v3
143+
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
144144

145145
- name: Install dependencies
146146
env:
@@ -175,7 +175,7 @@ jobs:
175175
sudo -E ./tests/pre-deploy.sh
176176
177177
- name: Build Docker image with cache
178-
uses: docker/build-push-action@v5
178+
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
179179
with:
180180
context: .
181181
tags: local/algo

0 commit comments

Comments
 (0)