-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use reviewdog directly with sarifReport
- Loading branch information
1 parent
33d370e
commit f6f30ad
Showing
2 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ jobs: | |
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Setup reviewdog | ||
uses: reviewdog/[email protected] | ||
|
||
- name: Cache Gradle Files | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -28,10 +31,11 @@ jobs: | |
- name: Run Android Lint | ||
run: ./gradlew scratchoff:lintDebug | ||
|
||
- name: Review Android Lint Results | ||
uses: DVDAndroid/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
lint_xml_file: scratchoff/build/reports/lint-results-debug.html | ||
reporter: github-pr-review | ||
level: warning | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters