-
Notifications
You must be signed in to change notification settings - Fork 39
37 lines (31 loc) · 907 Bytes
/
qodana.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: '🧠 Qodana: Static Code Analysis'
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
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 }}
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.3
with:
pr-mode: false
args: --baseline,.github/settings/qodana.sarif.json
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_590242153 }}
QODANA_ENDPOINT: 'https://qodana.cloud'
- name: Upload sarif file for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json