From dfb4e069959fad18c146314831069f4a1106ba33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Lo=CC=81pez=20Man=CC=83as?= Date: Wed, 23 Jul 2025 16:44:32 +0200 Subject: [PATCH] chore: fix SARIF upload by splitting per category --- .github/workflows/lint-report.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint-report.yml b/.github/workflows/lint-report.yml index 40b69877c..87dc370ee 100644 --- a/.github/workflows/lint-report.yml +++ b/.github/workflows/lint-report.yml @@ -36,11 +36,14 @@ jobs: - name: Run Android Lint run: ./gradlew lint - - name: Merge SARIF files - run: | - jq -s '{ "$schema": "https://json.schemastore.org/sarif-2.1.0", "version": "2.1.0", "runs": map(.runs) | add }' library/build/reports/lint-results-debug.sarif demo/build/reports/lint-results-debug.sarif > merged.sarif + - name: Upload SARIF for library + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: library/build/reports/lint-results-debug.sarif + category: library - - name: Upload SARIF file + - name: Upload SARIF for demo uses: github/codeql-action/upload-sarif@v3 with: - sarif_file: merged.sarif + sarif_file: demo/build/reports/lint-results-debug.sarif + category: demo