-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (51 loc) · 1.56 KB
/
qodana.yml
File metadata and controls
59 lines (51 loc) · 1.56 KB
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
59
name: Qodana
on:
workflow_call:
inputs:
ref:
required: true
type: string
test_artifact_name:
required: false
type: string
default: test-results
coverage_artifact_name:
required: false
type: string
default: test-coverage
secrets:
QODANA_TOKEN:
required: true
defaults:
run:
working-directory: ./
jobs:
qodana-check:
runs-on: ubuntu-latest
name: Inspect Code
steps:
- name: Harden runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: ${{ inputs.ref }}
- name: Download Test Reports Artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: ${{ inputs.test_artifact_name }}
path: ./qodana-downloaded-reports/test-results
- name: Download Coverage Report Artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: ${{ inputs.coverage_artifact_name }}
path: ./.qodana/code-coverage
- name: Run Qodana
uses: JetBrains/qodana-action@f5aa2889b113c16bd6aee47817b027537ee33ac7 # v2025.1
with:
args: --baseline,.qodana/qodana.sarif.json
push-fixes: true
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}