Generate SARIF lint reports and upload them to GitHub#186
Draft
Generate SARIF lint reports and upload them to GitHub#186
Conversation
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
c4fd3a2 to
5e88a21
Compare
Configure the Android lint plugin to check subprojects and their
dependencies, producing SARIF [1] reports in the build/sarif-reports/
These can later be configured to be uploaded to GitHub in a way that
the web interface will display the issues found and allow navigating
to them.
[1] Standard format for static analysis output, see
https://sarifweb.azurewebsites.net/
Add one step to the lint workflow that uploads the SARIF output from the checks to GitHub, which will show them in the web interface and allow navigation to the diagnostics.
5e88a21 to
e8ec7d1
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configure the build to make the linter generate SARIF output for all subprojects and their dependencies, then add a step in the CI to upload the reports to GitHub. This will make linter output visible in the web interface and allow navigating through the diagnostics.
This includes the changes from #185, which is a prerequisite.