forked from aws/aws-toolkit-jetbrains
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqodana-check-duplicatedcode.yml
More file actions
49 lines (46 loc) · 1.42 KB
/
qodana-check-duplicatedcode.yml
File metadata and controls
49 lines (46 loc) · 1.42 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
name: Qodana - Duplicated Code
on:
workflow_dispatch:
push:
branches: [ main, feature/** ]
pull_request:
branches: [ '**' ]
concurrency:
group: ${{ github.workflow }}${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: read
# PR check
checks: write
# PR comments
pull-requests: write
# SARIF upload
security-events: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Maximize Build Space
if: runner.os == 'Linux'
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
large-packages: false
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2025.1.1
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
# --config points to the DuplicatedCode-only Qodana config
args:
--config,qodana-configs/duplicated-code/qodana.yaml
cache-default-branch-only: true
# pr-mode off means that the whole repo should be checked for duplicate code, instead of just copy/pastes within the PR
pr-mode: false
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json