From 1e861ac187743652df5ec2e396b6a6d80abde166 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Tue, 9 Dec 2025 09:34:25 +0100 Subject: [PATCH] fix av-whitelist workflow --- .github/workflows/av-whitelist.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/av-whitelist.yml b/.github/workflows/av-whitelist.yml index ca74a3281..16dd61bcf 100644 --- a/.github/workflows/av-whitelist.yml +++ b/.github/workflows/av-whitelist.yml @@ -7,6 +7,16 @@ on: description: "Url to the file to upload" required: true type: string + avast: + description: "Upload to Avast" + required: false + type: boolean + default: true + kaspersky: + description: "Upload to Kaspersky" + required: false + type: boolean + default: true workflow_dispatch: inputs: url: @@ -39,7 +49,7 @@ jobs: url="${INPUT_URL}" echo "fileName=${url##*/}" >> $GITHUB_OUTPUT - name: Download file - run: curl --remote-name ${INPUT_URL} -L -o ${{steps.extractName.outputs.fileName}} + run: curl "${INPUT_URL}" -L -o "${{steps.extractName.outputs.fileName}}" --fail-with-body - name: Upload artifact uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -50,7 +60,7 @@ jobs: name: Anti Virus Allowlisting Kaspersky runs-on: ubuntu-latest needs: download-file - if: github.event_name == 'workflow_call' || inputs.kaspersky + if: inputs.kaspersky steps: - name: Download artifact uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 @@ -70,7 +80,7 @@ jobs: name: Anti Virus Allowlisting Avast runs-on: ubuntu-latest needs: download-file - if: github.event_name == 'workflow_call' || inputs.avast + if: inputs.avast steps: - name: Download artifact uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0