Skip to content

Commit 1ae02dc

Browse files
committed
chore: fix SARIF upload by splitting per category
1 parent c027799 commit 1ae02dc

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
@@ -39,11 +39,14 @@ jobs:
3939
- name: Run Android Lint
4040
run: ./gradlew lint
4141

42-
- name: Merge SARIF files
43-
run: |
44-
jq -s '{ "$schema": "https://json.schemastore.org/sarif-2.1.0", "version": "2.1.0", "runs": map(.runs) | add }' app/build/reports/lint-results.sarif places-ktx/build/reports/lint-results.sarif > merged.sarif
42+
- name: Upload SARIF for app
43+
uses: github/codeql-action/upload-sarif@v3
44+
with:
45+
sarif_file: app/build/reports/lint-results.sarif
46+
category: app
4547

46-
- name: Upload SARIF file
48+
- name: Upload SARIF for places-ktx
4749
uses: github/codeql-action/upload-sarif@v3
4850
with:
49-
sarif_file: merged.sarif
51+
sarif_file: places-ktx/build/reports/lint-results.sarif
52+
category: places-ktx

0 commit comments

Comments
 (0)