5656 env :
5757 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5858 steps :
59- - uses : actions/checkout@v4
59+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
6060 with :
6161 persist-credentials : false
6262 submodules : recursive
6666 shell : bash
6767 run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.2/cargo-dist-installer.sh | sh"
6868 - name : Cache dist
69- uses : actions/upload-artifact@v4
69+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7070 with :
7171 name : cargo-dist-cache
7272 path : ~/.cargo/bin/dist
8282 cat plan-dist-manifest.json
8383 echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
8484 - name : " Upload dist-manifest.json"
85- uses : actions/upload-artifact@v4
85+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
8686 with :
8787 name : artifacts-plan-dist-manifest
8888 path : plan-dist-manifest.json
@@ -120,7 +120,7 @@ jobs:
120120 - name : enable windows longpaths
121121 run : |
122122 git config --global core.longpaths true
123- - uses : actions/checkout@v4
123+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
124124 with :
125125 persist-credentials : false
126126 submodules : recursive
@@ -135,7 +135,7 @@ jobs:
135135 run : ${{ matrix.install_dist.run }}
136136 # Get the dist-manifest
137137 - name : Fetch local artifacts
138- uses : actions/download-artifact@v4
138+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
139139 with :
140140 pattern : artifacts-*
141141 path : target/distrib/
@@ -149,7 +149,7 @@ jobs:
149149 dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
150150 echo "dist ran successfully"
151151 - name : Attest
152- uses : actions/attest-build-provenance@v2
152+ uses : actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2
153153 with :
154154 subject-path : " target/distrib/*${{ join(matrix.targets, ', ') }}*"
155155 - id : cargo-dist
@@ -166,7 +166,7 @@ jobs:
166166
167167 cp dist-manifest.json "$BUILD_MANIFEST_NAME"
168168 - name : " Upload artifacts"
169- uses : actions/upload-artifact@v4
169+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
170170 with :
171171 name : artifacts-build-local-${{ join(matrix.targets, '_') }}
172172 path : |
@@ -183,19 +183,19 @@ jobs:
183183 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
184184 BUILD_MANIFEST_NAME : target/distrib/global-dist-manifest.json
185185 steps :
186- - uses : actions/checkout@v4
186+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
187187 with :
188188 persist-credentials : false
189189 submodules : recursive
190190 - name : Install cached dist
191- uses : actions/download-artifact@v4
191+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
192192 with :
193193 name : cargo-dist-cache
194194 path : ~/.cargo/bin/
195195 - run : chmod +x ~/.cargo/bin/dist
196196 # Get all the local artifacts for the global tasks to use (for e.g. checksums)
197197 - name : Fetch local artifacts
198- uses : actions/download-artifact@v4
198+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
199199 with :
200200 pattern : artifacts-*
201201 path : target/distrib/
@@ -213,7 +213,7 @@ jobs:
213213
214214 cp dist-manifest.json "$BUILD_MANIFEST_NAME"
215215 - name : " Upload artifacts"
216- uses : actions/upload-artifact@v4
216+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
217217 with :
218218 name : artifacts-build-global
219219 path : |
@@ -233,19 +233,19 @@ jobs:
233233 outputs :
234234 val : ${{ steps.host.outputs.manifest }}
235235 steps :
236- - uses : actions/checkout@v4
236+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
237237 with :
238238 persist-credentials : false
239239 submodules : recursive
240240 - name : Install cached dist
241- uses : actions/download-artifact@v4
241+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
242242 with :
243243 name : cargo-dist-cache
244244 path : ~/.cargo/bin/
245245 - run : chmod +x ~/.cargo/bin/dist
246246 # Fetch artifacts from scratch-storage
247247 - name : Fetch artifacts
248- uses : actions/download-artifact@v4
248+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
249249 with :
250250 pattern : artifacts-*
251251 path : target/distrib/
@@ -258,14 +258,14 @@ jobs:
258258 cat dist-manifest.json
259259 echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
260260 - name : " Upload dist-manifest.json"
261- uses : actions/upload-artifact@v4
261+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
262262 with :
263263 # Overwrite the previous copy
264264 name : artifacts-dist-manifest
265265 path : dist-manifest.json
266266 # Create a GitHub Release while uploading all files to it
267267 - name : " Download GitHub Artifacts"
268- uses : actions/download-artifact@v4
268+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
269269 with :
270270 pattern : artifacts-*
271271 path : artifacts
@@ -298,7 +298,7 @@ jobs:
298298 env :
299299 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
300300 steps :
301- - uses : actions/checkout@v4
301+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
302302 with :
303303 persist-credentials : false
304304 submodules : recursive
0 commit comments