25
25
CARGO_TERM_COLOR : always
26
26
CARGO_INCREMENTAL : ' 0'
27
27
CARGO_PROFILE_DEV_DEBUG : ' 0'
28
- RUST_TOOLCHAIN_VERSION : " 1.80.0 "
28
+ RUST_TOOLCHAIN_VERSION : " 1.80.1 "
29
29
RUSTFLAGS : " -D warnings"
30
30
RUSTDOCFLAGS : " -D warnings"
31
31
RUST_LOG : " info"
49
49
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
50
50
with :
51
51
submodules : recursive
52
- - uses : dtolnay/rust-toolchain@d8352f6b1d2e870bc5716e7a6d9b65c4cc244a1a
52
+ - uses : dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
53
53
with :
54
54
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
55
55
- uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
@@ -88,18 +88,18 @@ jobs:
88
88
TRIGGER : ${{ github.event_name }}
89
89
GITHUB_REF : ${{ github.ref }}
90
90
run : |
91
- if [[ $TRIGGER == "pull_request" ]]; then
91
+ if [[ " $TRIGGER" == "pull_request" ]]; then
92
92
echo "exporting test as target helm repo: ${{ env.TEST_REPO_HELM_URL }}"
93
- echo "helm_repo=${{ env.TEST_REPO_HELM_URL }}" >> $GITHUB_OUTPUT
94
- elif [[ ( $TRIGGER == "push" || $TRIGGER == "schedule" || $TRIGGER == "workflow_dispatch" ) && $GITHUB_REF == "refs/heads/main" ]]; then
93
+ echo "helm_repo=${{ env.TEST_REPO_HELM_URL }}" >> " $GITHUB_OUTPUT"
94
+ elif [[ ( " $TRIGGER" == "push" || " $TRIGGER" == "schedule" || " $TRIGGER" == "workflow_dispatch" ) && " $GITHUB_REF" == "refs/heads/main" ]]; then
95
95
echo "exporting dev as target helm repo: ${{ env.DEV_REPO_HELM_URL }}"
96
- echo "helm_repo=${{ env.DEV_REPO_HELM_URL }}" >> $GITHUB_OUTPUT
97
- elif [[ $TRIGGER == "push" && $GITHUB_REF == refs/tags/* ]]; then
96
+ echo "helm_repo=${{ env.DEV_REPO_HELM_URL }}" >> " $GITHUB_OUTPUT"
97
+ elif [[ " $TRIGGER" == "push" && $GITHUB_REF == refs/tags/* ]]; then
98
98
echo "exporting stable as target helm repo: ${{ env.STABLE_REPO_HELM_URL }}"
99
- echo "helm_repo=${{ env.STABLE_REPO_HELM_URL }}" >> $GITHUB_OUTPUT
99
+ echo "helm_repo=${{ env.STABLE_REPO_HELM_URL }}" >> " $GITHUB_OUTPUT"
100
100
else
101
101
echo "Unknown trigger and ref combination encountered, skipping publish step: $TRIGGER $GITHUB_REF"
102
- echo "helm_repo=skip" >> $GITHUB_OUTPUT
102
+ echo "helm_repo=skip" >> " $GITHUB_OUTPUT"
103
103
fi
104
104
105
105
run_cargodeny :
@@ -118,7 +118,7 @@ jobs:
118
118
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
119
119
with :
120
120
submodules : recursive
121
- - uses : EmbarkStudios/cargo-deny-action@3f4a782664881cf5725d0ffd23969fcce89fd868 # v1.6.3
121
+ - uses : EmbarkStudios/cargo-deny-action@8371184bd11e21dcf8ac82ebf8c9c9f74ebf7268 # v2.0.1
122
122
with :
123
123
command : check ${{ matrix.checks }}
124
124
@@ -129,7 +129,7 @@ jobs:
129
129
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
130
130
with :
131
131
submodules : recursive
132
- - uses : dtolnay/rust-toolchain@d8352f6b1d2e870bc5716e7a6d9b65c4cc244a1a
132
+ - uses : dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
133
133
with :
134
134
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
135
135
components : rustfmt
@@ -147,7 +147,7 @@ jobs:
147
147
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
148
148
with :
149
149
submodules : recursive
150
- - uses : dtolnay/rust-toolchain@d8352f6b1d2e870bc5716e7a6d9b65c4cc244a1a
150
+ - uses : dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
151
151
with :
152
152
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
153
153
components : clippy
@@ -182,7 +182,7 @@ jobs:
182
182
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
183
183
with :
184
184
submodules : recursive
185
- - uses : dtolnay/rust-toolchain@d8352f6b1d2e870bc5716e7a6d9b65c4cc244a1a
185
+ - uses : dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
186
186
with :
187
187
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
188
188
components : rustfmt
@@ -204,7 +204,7 @@ jobs:
204
204
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
205
205
with :
206
206
submodules : recursive
207
- - uses : dtolnay/rust-toolchain@d8352f6b1d2e870bc5716e7a6d9b65c4cc244a1a
207
+ - uses : dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
208
208
with :
209
209
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
210
210
- uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
@@ -224,7 +224,7 @@ jobs:
224
224
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
225
225
with :
226
226
submodules : recursive
227
- - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1 .0
227
+ - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2 .0
228
228
with :
229
229
python-version : ' 3.12'
230
230
- name : Install jinja2-cli
@@ -265,9 +265,9 @@ jobs:
265
265
- name : Set up Helm
266
266
uses : azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
267
267
with :
268
- version : v3.13.3
268
+ version : v3.16.1
269
269
- name : Set up cargo
270
- uses : dtolnay/rust-toolchain@d8352f6b1d2e870bc5716e7a6d9b65c4cc244a1a
270
+ uses : dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
271
271
with :
272
272
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
273
273
- uses : Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
@@ -310,6 +310,7 @@ jobs:
310
310
matrix :
311
311
runner : ["ubuntu-latest", "ubicloud-standard-8-arm"]
312
312
runs-on : ${{ matrix.runner }}
313
+ timeout-minutes : 120
313
314
permissions :
314
315
id-token : write
315
316
env :
@@ -331,8 +332,8 @@ jobs:
331
332
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
332
333
with :
333
334
submodules : recursive
334
- - uses : cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
335
- - uses : dtolnay/rust-toolchain@d8352f6b1d2e870bc5716e7a6d9b65c4cc244a1a
335
+ - uses : cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
336
+ - uses : dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
336
337
with :
337
338
toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
338
339
components : rustfmt
@@ -351,9 +352,9 @@ jobs:
351
352
# default value in the makefile if called from this action, but not otherwise (i.e. when called locally).
352
353
# This is needed for the HELM_REPO variable.
353
354
- name : Install cosign
354
- uses : sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5 .0
355
+ uses : sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6 .0
355
356
- name : Install syft
356
- uses : anchore/sbom-action/download-syft@e8d2a6937ecead383dfe75190d104edd1f9c5751 # v0.16.0
357
+ uses : anchore/sbom-action/download-syft@61119d458adab75f756bc0b9e4bde25725f86a7a # v0.17.2
357
358
- name : Build Docker image and Helm chart
358
359
run : |
359
360
# Installing helm and yq on ubicloud-standard-8-arm only
@@ -379,7 +380,7 @@ jobs:
379
380
- id : printtag
380
381
name : Output image name and tag
381
382
if : ${{ !github.event.pull_request.head.repo.fork }}
382
- run : echo "IMAGE_TAG=$(make -e print-docker-tag)" >> $GITHUB_OUTPUT
383
+ run : echo "IMAGE_TAG=$(make -e print-docker-tag)" >> " $GITHUB_OUTPUT"
383
384
384
385
create_manifest_list :
385
386
name : Build and publish manifest list
@@ -396,7 +397,7 @@ jobs:
396
397
OCI_REGISTRY_SDP_CHARTS_USERNAME : " robot$sdp-charts+github-action-build"
397
398
steps :
398
399
- name : Install cosign
399
- uses : sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5 .0
400
+ uses : sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6 .0
400
401
- name : Checkout
401
402
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
402
403
with :
@@ -437,4 +438,4 @@ jobs:
437
438
ARCH_FOR_PREFLIGHT="$(arch | sed -e 's#x86_64#amd64#' | sed -e 's#aarch64#arm64#')"
438
439
./preflight-linux-amd64 check container "$IMAGE_TAG" --platform "${ARCH_FOR_PREFLIGHT}" > preflight.out
439
440
- name : " Passed?"
440
- run : ' [ "$(cat preflight.out | jq -r .passed)" == true ]'
441
+ run : ' [ "$(jq -r .passed < preflight.out )" == true ]'
0 commit comments