5555 # Only run tests on actual tag pushes, not PRs (PRs have their own test workflow)
5656 if : ${{ !github.event.pull_request }}
5757 steps :
58- - uses : actions/checkout@v4
58+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
5959 with :
6060 persist-credentials : false
6161
@@ -65,12 +65,12 @@ jobs:
6565 sudo apt-get install -y cmake libssl-dev pkg-config
6666
6767 - name : Install Rust toolchain
68- uses : dtolnay/rust-toolchain@stable
68+ uses : dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
6969 with :
7070 components : clippy, rustfmt
7171
7272 - name : Cache cargo registry
73- uses : actions/cache@v4
73+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
7474 with :
7575 path : |
7676 ~/.cargo/registry
@@ -106,7 +106,7 @@ jobs:
106106 env :
107107 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
108108 steps :
109- - uses : actions/checkout@v4
109+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
110110 with :
111111 persist-credentials : false
112112 submodules : recursive
@@ -116,7 +116,7 @@ jobs:
116116 shell : bash
117117 run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.2/cargo-dist-installer.sh | sh"
118118 - name : Cache dist
119- uses : actions/upload-artifact@v4
119+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
120120 with :
121121 name : cargo-dist-cache
122122 path : ~/.cargo/bin/dist
@@ -132,7 +132,7 @@ jobs:
132132 cat plan-dist-manifest.json
133133 echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
134134 - name : " Upload dist-manifest.json"
135- uses : actions/upload-artifact@v4
135+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
136136 with :
137137 name : artifacts-plan-dist-manifest
138138 path : plan-dist-manifest.json
@@ -166,7 +166,7 @@ jobs:
166166 - name : enable windows longpaths
167167 run : |
168168 git config --global core.longpaths true
169- - uses : actions/checkout@v4
169+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
170170 with :
171171 persist-credentials : false
172172 submodules : recursive
@@ -181,7 +181,7 @@ jobs:
181181 run : ${{ matrix.install_dist.run }}
182182 # Get the dist-manifest
183183 - name : Fetch local artifacts
184- uses : actions/download-artifact@v4
184+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
185185 with :
186186 pattern : artifacts-*
187187 path : target/distrib/
@@ -208,7 +208,7 @@ jobs:
208208
209209 cp dist-manifest.json "$BUILD_MANIFEST_NAME"
210210 - name : " Upload artifacts"
211- uses : actions/upload-artifact@v4
211+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
212212 with :
213213 name : artifacts-build-local-${{ join(matrix.targets, '_') }}
214214 path : |
@@ -225,19 +225,19 @@ jobs:
225225 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
226226 BUILD_MANIFEST_NAME : target/distrib/global-dist-manifest.json
227227 steps :
228- - uses : actions/checkout@v4
228+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
229229 with :
230230 persist-credentials : false
231231 submodules : recursive
232232 - name : Install cached dist
233- uses : actions/download-artifact@v4
233+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
234234 with :
235235 name : cargo-dist-cache
236236 path : ~/.cargo/bin/
237237 - run : chmod +x ~/.cargo/bin/dist
238238 # Get all the local artifacts for the global tasks to use (for e.g. checksums)
239239 - name : Fetch local artifacts
240- uses : actions/download-artifact@v4
240+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
241241 with :
242242 pattern : artifacts-*
243243 path : target/distrib/
@@ -255,7 +255,7 @@ jobs:
255255
256256 cp dist-manifest.json "$BUILD_MANIFEST_NAME"
257257 - name : " Upload artifacts"
258- uses : actions/upload-artifact@v4
258+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
259259 with :
260260 name : artifacts-build-global
261261 path : |
@@ -276,19 +276,19 @@ jobs:
276276 outputs :
277277 val : ${{ steps.host.outputs.manifest }}
278278 steps :
279- - uses : actions/checkout@v4
279+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
280280 with :
281281 persist-credentials : false
282282 submodules : recursive
283283 - name : Install cached dist
284- uses : actions/download-artifact@v4
284+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
285285 with :
286286 name : cargo-dist-cache
287287 path : ~/.cargo/bin/
288288 - run : chmod +x ~/.cargo/bin/dist
289289 # Fetch artifacts from scratch-storage
290290 - name : Fetch artifacts
291- uses : actions/download-artifact@v4
291+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
292292 with :
293293 pattern : artifacts-*
294294 path : target/distrib/
@@ -301,14 +301,14 @@ jobs:
301301 cat dist-manifest.json
302302 echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
303303 - name : " Upload dist-manifest.json"
304- uses : actions/upload-artifact@v4
304+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
305305 with :
306306 # Overwrite the previous copy
307307 name : artifacts-dist-manifest
308308 path : dist-manifest.json
309309 # Create a GitHub Release while uploading all files to it
310310 - name : " Download GitHub Artifacts"
311- uses : actions/download-artifact@v4
311+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
312312 with :
313313 pattern : artifacts-*
314314 path : artifacts
@@ -342,14 +342,14 @@ jobs:
342342 GITHUB_EMAIL : " admin+bot@axo.dev"
343343 if : ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }}
344344 steps :
345- - uses : actions/checkout@v4
345+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
346346 with :
347347 persist-credentials : true
348348 repository : " osodevops/homebrew-tap"
349349 token : ${{ secrets.HOMEBREW_TAP_TOKEN }}
350350 # So we have access to the formula
351351 - name : Fetch homebrew formulae
352- uses : actions/download-artifact@v4
352+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
353353 with :
354354 pattern : artifacts-*
355355 path : Formula/
@@ -389,7 +389,7 @@ jobs:
389389 env :
390390 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
391391 steps :
392- - uses : actions/checkout@v4
392+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
393393 with :
394394 persist-credentials : false
395395 submodules : recursive
0 commit comments