forked from zitadel/client-python
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.59 KB
/
Copy pathqodana.yml
File metadata and controls
59 lines (51 loc) · 1.59 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 the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ inputs.ref }}
- name: Download Test Reports Artifact
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: ${{ inputs.test_artifact_name }}
path: ./qodana-downloaded-reports/test-results
- name: Download Coverage Report Artifact
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: ${{ inputs.coverage_artifact_name }}
path: ./.qodana/code-coverage
- name: Run Qodana
uses: JetBrains/qodana-action@201551778d1453e36c5c0aa26f89a94775cb1acc # v2025.1
with:
args: --baseline,.qodana/qodana.sarif.json
push-fixes: true
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}