Skip to content

Introduce JetBrains Qodana quality scans #15

Introduce JetBrains Qodana quality scans

Introduce JetBrains Qodana quality scans #15

Workflow file for this run

name: 🧠 Qodana
on:
pull_request:
paths:
- 'src/**'
- '.github/workflows/qodana.yml'
types: [opened, synchronize, reopened]
push:
branches:
- 'master'
paths:
- 'src/**'
- '.github/workflows/qodana.yml'
schedule:
- cron: '17 5 * * 0' # Random time
workflow_dispatch:
jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
with:
pr-mode: false
args: |
-o,${{ runner.temp }}/qodana/results,
--save-report=false
upload-result: true
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
# - name: Upload SARIF file for GitHub Advanced Security Dashboard
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
# if: always()