1- # This file was autogenerated by dist: https://opensource.axo.dev /cargo-dist/
1+ # This file was autogenerated by dist: https://axodotdev.github.io /cargo-dist
22#
33# Copyright 2022-2024, axodotdev
44# SPDX-License-Identifier: MIT or Apache-2.0
@@ -58,16 +58,17 @@ jobs:
5858 env :
5959 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6060 steps :
61- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
61+ - uses : actions/checkout@v4
6262 with :
63+ persist-credentials : false
6364 submodules : recursive
6465 - name : Install dist
6566 # we specify bash to get pipefail; it guards against the `curl` command
6667 # failing. otherwise `sh` won't catch that `curl` returned non-0
6768 shell : bash
68- run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.29 .0/cargo-dist-installer.sh | sh"
69+ run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30 .0/cargo-dist-installer.sh | sh"
6970 - name : Cache dist
70- uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
71+ uses : actions/upload-artifact@v4
7172 with :
7273 name : cargo-dist-cache
7374 path : ~/.cargo/bin/dist
8384 cat plan-dist-manifest.json
8485 echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
8586 - name : " Upload dist-manifest.json"
86- uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
87+ uses : actions/upload-artifact@v4
8788 with :
8889 name : artifacts-plan-dist-manifest
8990 path : plan-dist-manifest.json
@@ -117,8 +118,9 @@ jobs:
117118 - name : enable windows longpaths
118119 run : |
119120 git config --global core.longpaths true
120- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
121+ - uses : actions/checkout@v4
121122 with :
123+ persist-credentials : false
122124 submodules : recursive
123125 - name : Install Rust non-interactively if not already installed
124126 if : ${{ matrix.container }}
@@ -128,14 +130,14 @@ jobs:
128130 echo "$HOME/.cargo/bin" >> $GITHUB_PATH
129131 fi
130132 - name : " Harden Runner"
131- uses : " step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 "
133+ uses : " step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f "
132134 with :
133135 " egress-policy " : " audit"
134136 - name : Install dist
135137 run : ${{ matrix.install_dist.run }}
136138 # Get the dist-manifest
137139 - name : Fetch local artifacts
138- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
140+ uses : actions/download-artifact@v4
139141 with :
140142 pattern : artifacts-*
141143 path : target/distrib/
@@ -151,7 +153,7 @@ jobs:
151153 dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
152154 echo "dist ran successfully"
153155 - name : Attest
154- uses : actions/attest-build-provenance@v3
156+ uses : actions/attest-build-provenance@v2
155157 with :
156158 subject-path : " target/distrib/*${{ join(matrix.targets, ', ') }}*"
157159 - id : cargo-dist
@@ -168,7 +170,7 @@ jobs:
168170
169171 cp dist-manifest.json "$BUILD_MANIFEST_NAME"
170172 - name : " Upload artifacts"
171- uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
173+ uses : actions/upload-artifact@v4
172174 with :
173175 name : artifacts-build-local-${{ join(matrix.targets, '_') }}
174176 path : |
@@ -185,18 +187,19 @@ jobs:
185187 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
186188 BUILD_MANIFEST_NAME : target/distrib/global-dist-manifest.json
187189 steps :
188- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
190+ - uses : actions/checkout@v4
189191 with :
192+ persist-credentials : false
190193 submodules : recursive
191194 - name : Install cached dist
192- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
195+ uses : actions/download-artifact@v4
193196 with :
194197 name : cargo-dist-cache
195198 path : ~/.cargo/bin/
196199 - run : chmod +x ~/.cargo/bin/dist
197200 # Get all the local artifacts for the global tasks to use (for e.g. checksums)
198201 - name : Fetch local artifacts
199- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
202+ uses : actions/download-artifact@v4
200203 with :
201204 pattern : artifacts-*
202205 path : target/distrib/
@@ -214,7 +217,7 @@ jobs:
214217
215218 cp dist-manifest.json "$BUILD_MANIFEST_NAME"
216219 - name : " Upload artifacts"
217- uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
220+ uses : actions/upload-artifact@v4
218221 with :
219222 name : artifacts-build-global
220223 path : |
@@ -234,18 +237,19 @@ jobs:
234237 outputs :
235238 val : ${{ steps.host.outputs.manifest }}
236239 steps :
237- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
240+ - uses : actions/checkout@v4
238241 with :
242+ persist-credentials : false
239243 submodules : recursive
240244 - name : Install cached dist
241- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
245+ uses : actions/download-artifact@v4
242246 with :
243247 name : cargo-dist-cache
244248 path : ~/.cargo/bin/
245249 - run : chmod +x ~/.cargo/bin/dist
246250 # Fetch artifacts from scratch-storage
247251 - name : Fetch artifacts
248- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
252+ uses : actions/download-artifact@v4
249253 with :
250254 pattern : artifacts-*
251255 path : target/distrib/
@@ -258,14 +262,14 @@ jobs:
258262 cat dist-manifest.json
259263 echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
260264 - name : " Upload dist-manifest.json"
261- uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
265+ uses : actions/upload-artifact@v4
262266 with :
263267 # Overwrite the previous copy
264268 name : artifacts-dist-manifest
265269 path : dist-manifest.json
266270 # Create a GitHub Release while uploading all files to it
267271 - name : " Download GitHub Artifacts"
268- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
272+ uses : actions/download-artifact@v4
269273 with :
270274 pattern : artifacts-*
271275 path : artifacts
@@ -296,6 +300,7 @@ jobs:
296300 env :
297301 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
298302 steps :
299- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
303+ - uses : actions/checkout@v4
300304 with :
305+ persist-credentials : false
301306 submodules : recursive
0 commit comments