Check presence of sarif files before executing `codeql-action/upload-sarif`

because the action behavior is to throw errors when no sarif files are available...

Closes #1759
pull/1837/head
Simon Marquis 9 months ago committed by GitHub
parent ecd27ce1bb
commit 0d6989b059

@ -151,7 +151,7 @@ jobs:
path: '**/build/reports/lint-results-*.html'
- name: Upload lint reports (SARIF)
if: always()
if: ${{ !cancelled() && hashFiles('**/*.sarif') != '' }}
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: './'

Loading…
Cancel
Save