Skip to content

Commit 57d98cc

Browse files
authored
Merge pull request #921 from SimonMarquis/sarif
Enable SARIF support on GitHub Actions
2 parents d8b735f + 2e1232c commit 57d98cc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/Build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ jobs:
160160
name: lint-reports
161161
path: '**/build/reports/lint-results-*.html'
162162

163+
- name: Upload lint reports (SARIF)
164+
if: always()
165+
uses: github/codeql-action/upload-sarif@v3
166+
with:
167+
sarif_file: './'
168+
163169
- name: Check badging
164170
run: ./gradlew :app:checkProdReleaseBadging
165171

build-logic/convention/src/main/kotlin/AndroidLintConventionPlugin.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ class AndroidLintConventionPlugin : Plugin<Project> {
4242

4343
private fun Lint.configure() {
4444
xmlReport = true
45+
sarifReport = true
4546
checkDependencies = true
4647
}

0 commit comments

Comments
 (0)