]> Untitled Git - bdk/commitdiff
fix(cont-integration): template injection audit
authorLeonardo Lima <oleonardolima@users.noreply.github.com>
Tue, 28 Jan 2025 14:06:55 +0000 (11:06 -0300)
committerLeonardo Lima <oleonardolima@users.noreply.github.com>
Tue, 28 Jan 2025 14:44:19 +0000 (11:44 -0300)
- 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

index 56e1fea87c3b4877d093bb88d9ae66b60b84e323..f13bca2fea82bb2ad02de9435e754f37e142c87b 100644 (file)
@@ -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