3939 is_push_to_main : ${{ steps.check.outputs.is_push_to_main }}
4040 steps :
4141 - name : Checkout
42- uses : actions/checkout@v6
42+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
4343
4444 - name : Extract version from pyproject.toml
4545 id : version
@@ -85,10 +85,10 @@ jobs:
8585 image : ${{ steps.filter.outputs.image }}
8686 steps :
8787 - name : Checkout
88- uses : actions/checkout@v6
88+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
8989
9090 - name : Detect image-affecting changes
91- uses : dorny/paths-filter@v3
91+ uses : dorny/paths-filter@15192bc058cc28a13dbf6cde61f19e18988b7af6 # v3
9292 id : filter
9393 with :
9494 filters : |
@@ -111,7 +111,7 @@ jobs:
111111 runs-on : ubuntu-latest
112112 steps :
113113 - name : Checkout
114- uses : actions/checkout@v6
114+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
115115
116116 - name : Skip notice
117117 if : needs.extract-version.outputs.is_push_to_main != 'true' && needs.changes.outputs.image != 'true'
@@ -129,26 +129,26 @@ jobs:
129129
130130 - name : Set up Docker Buildx
131131 if : needs.extract-version.outputs.is_push_to_main == 'true' || needs.changes.outputs.image == 'true'
132- uses : docker/setup-buildx-action@v4
132+ uses : docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
133133
134134 - name : Login to GitHub Container Registry
135135 if : needs.extract-version.outputs.is_push_to_main == 'true'
136- uses : docker/login-action@v4
136+ uses : docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
137137 with :
138138 registry : ghcr.io
139139 username : ${{ github.actor }}
140140 password : ${{ secrets.GITHUB_TOKEN }}
141141
142142 - name : Login to Docker Hub
143143 if : needs.extract-version.outputs.is_push_to_main == 'true' && needs.extract-version.outputs.has_dockerhub_secrets == 'true'
144- uses : docker/login-action@v4
144+ uses : docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
145145 with :
146146 username : ${{ secrets.DOCKER_USERNAME }}
147147 password : ${{ secrets.DOCKER_PASSWORD }}
148148
149149 - name : Cache Docker layers
150150 if : needs.extract-version.outputs.is_push_to_main == 'true' || needs.changes.outputs.image == 'true'
151- uses : actions/cache@v5
151+ uses : actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
152152 with :
153153 path : /tmp/.buildx-cache-dev
154154 key : ${{ runner.os }}-buildx-dev-${{ github.sha }}
@@ -177,7 +177,7 @@ jobs:
177177
178178 - name : Build and push regular image
179179 if : needs.extract-version.outputs.is_push_to_main == 'true' || needs.changes.outputs.image == 'true'
180- uses : docker/build-push-action@v7
180+ uses : docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7
181181 with :
182182 context : .
183183 file : ./Dockerfile
@@ -201,7 +201,7 @@ jobs:
201201 runs-on : ubuntu-latest
202202 steps :
203203 - name : Checkout
204- uses : actions/checkout@v6
204+ uses : actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
205205
206206 - name : Free up disk space
207207 run : |
@@ -213,24 +213,24 @@ jobs:
213213 df -h
214214
215215 - name : Set up Docker Buildx
216- uses : docker/setup-buildx-action@v4
216+ uses : docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
217217
218218 - name : Login to GitHub Container Registry
219- uses : docker/login-action@v4
219+ uses : docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
220220 with :
221221 registry : ghcr.io
222222 username : ${{ github.actor }}
223223 password : ${{ secrets.GITHUB_TOKEN }}
224224
225225 - name : Login to Docker Hub
226226 if : needs.extract-version.outputs.has_dockerhub_secrets == 'true'
227- uses : docker/login-action@v4
227+ uses : docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
228228 with :
229229 username : ${{ secrets.DOCKER_USERNAME }}
230230 password : ${{ secrets.DOCKER_PASSWORD }}
231231
232232 - name : Cache Docker layers
233- uses : actions/cache@v5
233+ uses : actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
234234 with :
235235 path : /tmp/.buildx-cache-dev-single
236236 key : ${{ runner.os }}-buildx-dev-single-${{ github.sha }}
@@ -247,7 +247,7 @@ jobs:
247247 echo "tags=${TAGS}" >> $GITHUB_OUTPUT
248248
249249 - name : Build and push single-container image
250- uses : docker/build-push-action@v7
250+ uses : docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7
251251 with :
252252 context : .
253253 file : ./Dockerfile
0 commit comments