Skip to content

Commit 3797ea4

Browse files
committed
Enable SARIF support on GitHub Actions
Splitted from the initial Lint rework in #759.
1 parent 851ca63 commit 3797ea4

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
@@ -125,6 +125,12 @@ jobs:
125125
name: lint-reports
126126
path: '**/build/reports/lint-results-*.html'
127127

128+
- name: Upload lint reports (SARIF)
129+
if: always()
130+
uses: github/codeql-action/upload-sarif@v2
131+
with:
132+
sarif_file: './'
133+
128134
androidTest:
129135
needs: build
130136
runs-on: macOS-latest # enables hardware acceleration in the virtual machine

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)