From 534649a0af0169dbfa01a8a790ba8cb1a66b952c Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 17 Oct 2024 14:01:00 +0200 Subject: [PATCH] ci: don't run virustotal scan if key is missing [2] --- .github/workflows/guix.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/guix.yml b/.github/workflows/guix.yml index f0e68463..6c9b98fb 100644 --- a/.github/workflows/guix.yml +++ b/.github/workflows/guix.yml @@ -60,7 +60,9 @@ jobs: - name: build run: SUBSTITUTE_URLS='http://bordeaux.guix.gnu.org' HOSTS="${{ matrix.toolchain.target }}" ./contrib/guix/guix-build - name: virustotal scan - if: matrix.toolchain.target == 'x86_64-w64-mingw32' && secrets.VT_API_KEY != '' + env: + VT_API_KEY: ${{ secrets.VT_API_KEY }} + if: ${{ matrix.toolchain.target == 'x86_64-w64-mingw32' && env.VT_API_KEY != '' }} uses: crazy-max/ghaction-virustotal@v4 with: vt_api_key: ${{ secrets.VT_API_KEY }} -- 2.52.0