58
58
env :
59
59
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60
60
steps :
61
- - uses : actions/checkout@v4
61
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
62
62
with :
63
63
submodules : recursive
64
64
- name : Install dist
67
67
shell : bash
68
68
run : " curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.25.1/cargo-dist-installer.sh | sh"
69
69
- name : Cache dist
70
- uses : actions/upload-artifact@v4
70
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
71
71
with :
72
72
name : cargo-dist-cache
73
73
path : ~/.cargo/bin/dist
83
83
cat plan-dist-manifest.json
84
84
echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
85
85
- name : " Upload dist-manifest.json"
86
- uses : actions/upload-artifact@v4
86
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
87
87
with :
88
88
name : artifacts-plan-dist-manifest
89
89
path : plan-dist-manifest.json
@@ -116,14 +116,14 @@ jobs:
116
116
- name : enable windows longpaths
117
117
run : |
118
118
git config --global core.longpaths true
119
- - uses : actions/checkout@v4
119
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
120
120
with :
121
121
submodules : recursive
122
122
- name : Install dist
123
123
run : ${{ matrix.install_dist }}
124
124
# Get the dist-manifest
125
125
- name : Fetch local artifacts
126
- uses : actions/download-artifact@v4
126
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
127
127
with :
128
128
pattern : artifacts-*
129
129
path : target/distrib/
@@ -137,7 +137,7 @@ jobs:
137
137
dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
138
138
echo "dist ran successfully"
139
139
- name : Attest
140
- uses : actions/attest-build-provenance@v1
140
+ uses : actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1
141
141
with :
142
142
subject-path : " target/distrib/*${{ join(matrix.targets, ', ') }}*"
143
143
- id : cargo-dist
@@ -154,7 +154,7 @@ jobs:
154
154
155
155
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
156
156
- name : " Upload artifacts"
157
- uses : actions/upload-artifact@v4
157
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
158
158
with :
159
159
name : artifacts-build-local-${{ join(matrix.targets, '_') }}
160
160
path : |
@@ -171,18 +171,18 @@ jobs:
171
171
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
172
172
BUILD_MANIFEST_NAME : target/distrib/global-dist-manifest.json
173
173
steps :
174
- - uses : actions/checkout@v4
174
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
175
175
with :
176
176
submodules : recursive
177
177
- name : Install cached dist
178
- uses : actions/download-artifact@v4
178
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
179
179
with :
180
180
name : cargo-dist-cache
181
181
path : ~/.cargo/bin/
182
182
- run : chmod +x ~/.cargo/bin/dist
183
183
# Get all the local artifacts for the global tasks to use (for e.g. checksums)
184
184
- name : Fetch local artifacts
185
- uses : actions/download-artifact@v4
185
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
186
186
with :
187
187
pattern : artifacts-*
188
188
path : target/distrib/
@@ -200,7 +200,7 @@ jobs:
200
200
201
201
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
202
202
- name : " Upload artifacts"
203
- uses : actions/upload-artifact@v4
203
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
204
204
with :
205
205
name : artifacts-build-global
206
206
path : |
@@ -220,18 +220,18 @@ jobs:
220
220
outputs :
221
221
val : ${{ steps.host.outputs.manifest }}
222
222
steps :
223
- - uses : actions/checkout@v4
223
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
224
224
with :
225
225
submodules : recursive
226
226
- name : Install cached dist
227
- uses : actions/download-artifact@v4
227
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
228
228
with :
229
229
name : cargo-dist-cache
230
230
path : ~/.cargo/bin/
231
231
- run : chmod +x ~/.cargo/bin/dist
232
232
# Fetch artifacts from scratch-storage
233
233
- name : Fetch artifacts
234
- uses : actions/download-artifact@v4
234
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
235
235
with :
236
236
pattern : artifacts-*
237
237
path : target/distrib/
@@ -244,14 +244,14 @@ jobs:
244
244
cat dist-manifest.json
245
245
echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
246
246
- name : " Upload dist-manifest.json"
247
- uses : actions/upload-artifact@v4
247
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
248
248
with :
249
249
# Overwrite the previous copy
250
250
name : artifacts-dist-manifest
251
251
path : dist-manifest.json
252
252
# Create a GitHub Release while uploading all files to it
253
253
- name : " Download GitHub Artifacts"
254
- uses : actions/download-artifact@v4
254
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
255
255
with :
256
256
pattern : artifacts-*
257
257
path : artifacts
@@ -284,6 +284,6 @@ jobs:
284
284
env :
285
285
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
286
286
steps :
287
- - uses : actions/checkout@v4
287
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
288
288
with :
289
289
submodules : recursive
0 commit comments