Skip to content

Commit 6cf8fee

Browse files
committed
fix: remove results.sarif afterwards
1 parent 7ce804a commit 6cf8fee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,14 @@ runs:
268268
with:
269269
sarif_file: results.sarif
270270

271+
- shell: bash
272+
name: Remove results.sarif
273+
if: inputs.kubescape == 'true'
274+
run: |
275+
if [ -f results.sarif ]; then
276+
rm results.sarif
277+
fi
278+
271279
- if: inputs.cosign == 'true'
272280
name: Sign image with cosign
273281
run: |

0 commit comments

Comments
 (0)