Skip to content

A fully functional Android app built entirely with Kotlin and Jetpack Compose

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

Simon Marquis194447ac3ce2
diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml
index a814ffc8d..1ea971096 100644
--- a/.github/workflows/Build.yaml
+++ b/.github/workflows/Build.yaml
@@ -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: './'