From 30dce98450fb3a919babfe512d8e8d505f3dddd8 Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Tue, 28 Jan 2025 11:06:55 -0300 Subject: [PATCH] fix(cont-integration): template injection audit - fixes the `template_injection` audit failure due to `matrix.rust.version` usage, use an environement var instead see: https://woodruffw.github.io/zizmor/audits/#template-injection --- .github/workflows/cont_integration.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index 56e1fea87..f13bca2fe 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -52,8 +52,10 @@ jobs: if: matrix.rust.version == '1.63.0' run: ./ci/pin-msrv.sh - name: Build + Test + env: + MATRIX_RUST_VERSION: ${{ matrix.rust.version }} run: | - if [ "${{matrix.rust.version}}" = '1.63.0' ]; then + if [ $MATRIX_RUST_VERSION = '1.63.0' ]; then cargo build --workspace --exclude 'example_*' --exclude 'bdk_electrum' ${{ matrix.features }} cargo test --workspace --exclude 'example_*' --exclude 'bdk_electrum' ${{ matrix.features }} else