-
Notifications
You must be signed in to change notification settings - Fork 271
58 lines (56 loc) · 1.65 KB
/
qodana.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Static code analysis with Qodana
on:
push:
paths-ignore:
- .gitignore
- LICENSE
- README*
- docs/**
branches: [ main ]
pull_request:
paths-ignore:
- .gitignore
- LICENSE
- README*
- docs/**
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Qodana
runs-on: ubuntu-22.04
if: >
github.repository_owner == 'Apicurio' && contains(github.event.*.labels.*.name, 'QODANA')
permissions:
checks: write
contents: write
pull-requests: write
security-events: write
steps:
- name: Checkout ${{ github.ref }}
uses: actions/checkout@v3
if: github.event_name == 'push'
with:
fetch-depth: 0
- name: Checkout ${{ github.event.pull_request.head.sha }}
uses: actions/checkout@v3
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Scan
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
# TODO: args: --baseline,.qodana/qodana.sarif.json
upload-result: true
# TODO: push-fixes: pull-request
# - name: Upload report to GitHub
# uses: github/codeql-action/upload-sarif@v2
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
# with:
# sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
# continue-on-error: true # TODO: There are some issues when uploading the Sarif file