Skip to content

VietNguyenR/sarif-annotator

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

sarif-annotator

MegaLinter
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: vietnguyenr/sarif-annotator@1.0.0
    with: 
        sarif_path: 'megalinter-reports/megalinter-report.sarif'

Reference: https://docs.oasis-open.org/sarif/sarif/v2.0/csprd02/sarif-v2.0-csprd02.html