Skip to content

Commit 9e14a3b

Browse files
committed
only upload files if they exist
1 parent 3167555 commit 9e14a3b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/check-image-vulnerabilities.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
central-url: ${{ vars.ACS_DOGFOODING_CENTRAL_URL }}
6363

6464
- name: Upload scan result artifact
65-
if: always()
65+
if: always() && hashFiles('scan-result.json') != ''
6666
uses: actions/upload-artifact@v4
6767
with:
6868
name: scan-result-${{ matrix.image }}
@@ -104,9 +104,9 @@ jobs:
104104
central-url: ${{ vars.ACS_DOGFOODING_CENTRAL_URL }}
105105

106106
- name: Upload scan result artifact
107-
if: always()
107+
if: always() && hashFiles('scan-result.json') != ''
108108
uses: actions/upload-artifact@v4
109109
with:
110-
name: scan-result-${{ matrix.image }}
110+
name: scan-result-quay.io_rhacs-eng_${{ matrix.image }}_${{ inputs.version || github.ref_name }}.json
111111
path: scan-result.json
112112
retention-days: 30

0 commit comments

Comments
 (0)