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/1761/head
Simon Marquis 1 week ago committed by GitHub
parent 7d7549a5ed
commit 194447ac3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save