Skip to content

Commit 99a9025

Browse files
committed
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 <[email protected]>
1 parent c4d0f2d commit 99a9025

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ inputs:
3232
default: "ERROR"
3333
compliance-fail-on-vulnerabilities:
3434
description: |
35-
Exit with a non-zero status if known vulnerabilities are detected in discovered
35+
Exit with a non-zero status if known vulnerabilities are detected in discovered
3636
packages and dependencies.
3737
required: false
3838
default: "false"
@@ -148,7 +148,7 @@ runs:
148148
id: scanpipe
149149
shell: bash
150150
run: scanpipe output
151-
--project ${{ inputs.project-name }}
151+
--project ${{ inputs.project-name }}
152152
--format ${{ inputs.output-formats }}
153153

154154
- name: Upload outputs
@@ -157,6 +157,7 @@ runs:
157157
with:
158158
name: ${{ inputs.outputs-archive-name }}
159159
path: ${{ env.PROJECT_WORK_DIRECTORY }}/output/*
160+
overwrite: true
160161

161162
- name: Check compliance
162163
if: inputs.check-compliance == 'true'

0 commit comments

Comments
 (0)