From 99a90256e254c9c68d0e5d6d282bde09c5f21d90 Mon Sep 17 00:00:00 2001 From: Thomas Steenbergen Date: Fri, 12 Sep 2025 12:34:37 +0200 Subject: [PATCH] Add overwrite to upload-artifact action Add overwrite to fix "an artifact with this name already exists on the workflow run" error when multiple jobs use scancode-action within the same workflow. Signed-off-by: Thomas Steenbergen --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 1c13ff0..eaa581d 100644 --- a/action.yml +++ b/action.yml @@ -32,7 +32,7 @@ inputs: default: "ERROR" compliance-fail-on-vulnerabilities: description: | - Exit with a non-zero status if known vulnerabilities are detected in discovered + Exit with a non-zero status if known vulnerabilities are detected in discovered packages and dependencies. required: false default: "false" @@ -148,7 +148,7 @@ runs: id: scanpipe shell: bash run: scanpipe output - --project ${{ inputs.project-name }} + --project ${{ inputs.project-name }} --format ${{ inputs.output-formats }} - name: Upload outputs @@ -157,6 +157,7 @@ runs: with: name: ${{ inputs.outputs-archive-name }} path: ${{ env.PROJECT_WORK_DIRECTORY }}/output/* + overwrite: true - name: Check compliance if: inputs.check-compliance == 'true'