diff --git a/.github/workflows/android-lint.yml b/.github/workflows/android-lint.yml index 5bf86a5..9a9344f 100644 --- a/.github/workflows/android-lint.yml +++ b/.github/workflows/android-lint.yml @@ -17,6 +17,9 @@ jobs: distribution: 'zulu' java-version: 17 + - name: Setup reviewdog + uses: reviewdog/action-setup@v1.0.6 + - name: Cache Gradle Files uses: actions/cache@v3.3.2 with: @@ -28,10 +31,11 @@ jobs: - name: Run Android Lint run: ./gradlew scratchoff:lintDebug - - name: Review Android Lint Results - uses: DVDAndroid/action-android-lint@v1.2 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - lint_xml_file: scratchoff/build/reports/lint-results-debug.html - reporter: github-pr-review - level: warning \ No newline at end of file + - name: Review Lint Results + run: | + cat scratchoff/build/reports/lint-results-debug.sarif \ + | reviewdog \ + -name=android-lint \ + -f=sarif \ + -reporter=github-pr-review \ + -level=warning \ No newline at end of file diff --git a/scratchoff/build.gradle b/scratchoff/build.gradle index 76de64a..1a866e2 100644 --- a/scratchoff/build.gradle +++ b/scratchoff/build.gradle @@ -31,6 +31,10 @@ android { } } + lintOptions { + sarifReport true + } + publishing { singleVariant('release') { withSourcesJar()