name: Qodana on: workflow_dispatch: pull_request: push: branches: - master concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' cancel-in-progress: true jobs: inspection: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: 'Qodana Scan' uses: JetBrains/qodana-action@v2022.2.3 with: args: --baseline,qodana.sarif.json,--fail-threshold,0,--linter,jetbrains/qodana-jvm env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} - uses: github/codeql-action/upload-sarif@v2 with: sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json