This workflow is meant to work with code analyzer in the MegaLinter. This will read combined SARIF report and anotate the outputted problem in the file change section of the pull request. Report of analyzer that do not produce SARIF output will not work with this workflow.
Example.
- name: Annotation
if: ${{ success() }} || ${{ failure() }}
uses: yeaung276/[email protected]
with:
sarif_path: 'megalinter-reports/megalinter-report.sarif'
Reference: https://docs.oasis-open.org/sarif/sarif/v2.0/csprd02/sarif-v2.0-csprd02.html