Skip to content

Commit dbd633f

Browse files
authored
chore: fix SARIF upload by splitting per category (#1550)
1 parent 5281381 commit dbd633f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/lint-report.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ jobs:
3636
- name: Run Android Lint
3737
run: ./gradlew lint
3838

39-
- name: Merge SARIF files
40-
run: |
41-
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
39+
- name: Upload SARIF for library
40+
uses: github/codeql-action/upload-sarif@v3
41+
with:
42+
sarif_file: library/build/reports/lint-results-debug.sarif
43+
category: library
4244

43-
- name: Upload SARIF file
45+
- name: Upload SARIF for demo
4446
uses: github/codeql-action/upload-sarif@v3
4547
with:
46-
sarif_file: merged.sarif
48+
sarif_file: demo/build/reports/lint-results-debug.sarif
49+
category: demo

0 commit comments

Comments
 (0)