@@ -50,10 +50,10 @@ jobs:
50
50
with :
51
51
persist-credentials : false
52
52
submodules : recursive
53
- - uses : dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
53
+ - uses : dtolnay/rust-toolchain@56f84321dbccf38fb67ce29ab63e4754056677e0
54
54
with :
55
55
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
56
- - uses : Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
56
+ - uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
57
57
with :
58
58
key : udeps
59
59
cache-all-crates : " true"
@@ -114,7 +114,7 @@ jobs:
114
114
with :
115
115
persist-credentials : false
116
116
submodules : recursive
117
- - uses : EmbarkStudios/cargo-deny-action@8d73959fce1cdc8989f23fdf03bec6ae6a6576ef # v2.0.7
117
+ - uses : EmbarkStudios/cargo-deny-action@34899fc7ba81ca6268d5947a7a16b4649013fea1 # v2.0.11
118
118
with :
119
119
command : check ${{ matrix.checks }}
120
120
@@ -126,7 +126,7 @@ jobs:
126
126
with :
127
127
persist-credentials : false
128
128
submodules : recursive
129
- - uses : dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
129
+ - uses : dtolnay/rust-toolchain@56f84321dbccf38fb67ce29ab63e4754056677e0
130
130
with :
131
131
toolchain : ${{ env.RUST_NIGHTLY_TOOLCHAIN_VERSION }}
132
132
components : rustfmt
@@ -147,14 +147,15 @@ jobs:
147
147
with :
148
148
persist-credentials : false
149
149
submodules : recursive
150
- - uses : dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
150
+ - uses : dtolnay/rust-toolchain@56f84321dbccf38fb67ce29ab63e4754056677e0
151
151
with :
152
152
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
153
153
components : clippy
154
- - uses : Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
154
+ - uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
155
155
with :
156
156
key : clippy
157
157
cache-all-crates : " true"
158
+ # TODO (@Techassi): Remove this step (unmaintained action, kinda useless step anyway)
158
159
- name : Run clippy action to produce annotations
159
160
uses : giraffate/clippy-action@13b9d32482f25d29ead141b79e7e04e7900281e0 # v1.0.1
160
161
env :
@@ -164,12 +165,14 @@ jobs:
164
165
clippy_flags : --all-targets -- -D warnings
165
166
reporter : ' github-pr-review'
166
167
github_token : ${{ secrets.GITHUB_TOKEN }}
168
+ # TODO (@Techassi): Remove, done by pre-commit
167
169
- name : Run clippy manually without annotations
168
170
env :
169
171
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
170
172
if : env.GITHUB_TOKEN == null
171
173
run : cargo clippy --color never -q --all-targets -- -D warnings
172
174
175
+ # TODO (@Techassi): Can be done by pre-commit
173
176
run_rustdoc :
174
177
name : Run RustDoc
175
178
runs-on : ubuntu-latest
@@ -182,16 +185,17 @@ jobs:
182
185
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
183
186
with :
184
187
submodules : recursive
185
- - uses : dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
188
+ - uses : dtolnay/rust-toolchain@56f84321dbccf38fb67ce29ab63e4754056677e0
186
189
with :
187
190
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
188
191
components : rustfmt
189
- - uses : Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
192
+ - uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
190
193
with :
191
194
key : doc
192
195
cache-all-crates : " true"
193
196
- run : cargo doc --document-private-items
194
197
198
+ # TODO (@Techassi): Remove, done by pre-commit
195
199
run_tests :
196
200
name : Run Cargo Tests
197
201
runs-on : ubuntu-latest
@@ -205,10 +209,10 @@ jobs:
205
209
with :
206
210
persist-credentials : false
207
211
submodules : recursive
208
- - uses : dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
212
+ - uses : dtolnay/rust-toolchain@56f84321dbccf38fb67ce29ab63e4754056677e0
209
213
with :
210
214
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
211
- - uses : Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
215
+ - uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
212
216
with :
213
217
key : test
214
218
cache-all-crates : " true"
@@ -226,7 +230,7 @@ jobs:
226
230
with :
227
231
persist-credentials : false
228
232
submodules : recursive
229
- - uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4 .0
233
+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6 .0
230
234
with :
231
235
python-version : ${{ env.PYTHON_VERSION }}
232
236
- name : Install jinja2-cli
@@ -266,14 +270,14 @@ jobs:
266
270
persist-credentials : false
267
271
submodules : recursive
268
272
- name : Set up Helm
269
- uses : azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2 .0
273
+ uses : azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3 .0
270
274
with :
271
275
version : v3.16.1
272
276
- name : Set up cargo
273
- uses : dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
277
+ uses : dtolnay/rust-toolchain@56f84321dbccf38fb67ce29ab63e4754056677e0
274
278
with :
275
279
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
276
- - uses : Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
280
+ - uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
277
281
with :
278
282
key : charts
279
283
cache-all-crates : " true"
@@ -304,6 +308,8 @@ jobs:
304
308
- name : log
305
309
run : echo All tests have passed!
306
310
311
+ # TODO (@Techassi): Most of these publishing and signing tasks can be done by our own actions.
312
+ # Make use of them just like we do in docker-images.
307
313
package_and_publish :
308
314
name : Package Charts, Build Docker Image and publish them - ${{ matrix.runner }}
309
315
needs :
@@ -334,8 +340,8 @@ jobs:
334
340
with :
335
341
persist-credentials : false
336
342
submodules : recursive
337
- - uses : cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
338
- - uses : dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
343
+ - uses : cachix/install-nix-action@754537aaedb35f72ab11a60cc162c49ef3016495 # v31.2.0
344
+ - uses : dtolnay/rust-toolchain@56f84321dbccf38fb67ce29ab63e4754056677e0
339
345
with :
340
346
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
341
347
components : rustfmt
@@ -370,7 +376,7 @@ jobs:
370
376
371
377
# Recreate charts and publish charts and docker image.
372
378
- name : Install cosign
373
- uses : sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
379
+ uses : sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
374
380
- name : Install syft
375
381
uses : anchore/sbom-action/download-syft@f325610c9f50a54015d37c8d16cb3b0e2c8f4de0 # v0.18.0
376
382
- name : Build Docker image and Helm chart
@@ -415,7 +421,7 @@ jobs:
415
421
OCI_REGISTRY_SDP_CHARTS_USERNAME : " robot$sdp-charts+github-action-build"
416
422
steps :
417
423
- name : Install cosign
418
- uses : sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
424
+ uses : sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
419
425
- name : Checkout
420
426
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
421
427
with :
0 commit comments