Skip to content

Commit 516c049

Browse files
committed
Add duplicatedcode-only check
1 parent ba2ee8e commit 516c049

File tree

3 files changed

+4087
-89421
lines changed

3 files changed

+4087
-89421
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Qodana
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main, feature/** ]
7+
pull_request:
8+
branches: [ '**' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
qodana:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
# PR check
20+
checks: write
21+
# PR comments
22+
pull-requests: write
23+
# SARIF upload
24+
security-events: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
ref: ${{ github.event.pull_request.head.sha }}
29+
fetch-depth: 0
30+
- name: Maximize Build Space
31+
if: runner.os == 'Linux'
32+
uses: jlumbroso/free-disk-space@main
33+
with:
34+
tool-cache: false
35+
large-packages: false
36+
- name: 'Qodana Scan'
37+
uses: JetBrains/[email protected]
38+
env:
39+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
40+
with:
41+
args:
42+
--config,${{GITHUB_WORKSPACE}}/qodana-configs/duplicated-code/qodana.yaml,--baseline,${{GITHUB_WORKSPACE}}/qodana-configs/duplicated-code/qodana.sarif.yaml,--baseline-include-absent
43+
cache-default-branch-only: true
44+
- uses: github/codeql-action/upload-sarif@v3
45+
with:
46+
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json

0 commit comments

Comments
 (0)