Skip to content

Conversation

aperezdc
Copy link
Member

@aperezdc aperezdc commented Mar 21, 2025

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.

@github-advanced-security
Copy link

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.

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/
@aperezdc aperezdc force-pushed the aperezdc/lint-gha-sarif branch from 643d569 to c4fd3a2 Compare September 29, 2025 20:35
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.
@aperezdc aperezdc force-pushed the aperezdc/lint-gha-sarif branch from c4fd3a2 to 5e88a21 Compare September 29, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant