Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
activity

GitHub Action

SARIF Annotator

v0.2.0

SARIF Annotator

activity

SARIF Annotator

Annotates code with results from a SARIF file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: SARIF Annotator

uses: SirYwell/sarif-annotator@v0.2.0

Learn more about this action in SirYwell/sarif-annotator

Choose a version

typescript-action status

SARIF Annotator

This action lets you annotate your code based on SARIF files. Currently, it mainly supports Qodana.

Setup

This is an example workflow that uses Qodana

name: code quality
on:
  pull_request:
    branches:
      - master

jobs:
  code-quality:
    runs-on: ubuntu-latest
    name: code-quality qodana
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - uses: actions/setup-java@v2
        with:
          java-version: 11
          distribution: temurin
      - name: Qodana - Code Inspection
        id: qodana
        uses: JetBrains/qodana-action@v3.2.1
      - name: SARIF Annotator
        uses: SirYwell/sarif-annotator@v0.1.0
        with:
          source: qodana
          report-path: ${{ steps.qodana.outputs.results-json-path }}

(Note: This will annotate all issues found by Qodana, not only problems introduced by the Pull Request)