Skip to content

Commit 34024e8

Browse files
qodana-botmearvk
authored andcommitted
Add github workflow file
1 parent 30b700d commit 34024e8

1 file changed

Lines changed: 9 additions & 21 deletions

File tree

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
#-------------------------------------------------------------------------------#
2-
# Discover additional configuration options in our documentation #
3-
# https://www.jetbrains.com/help/qodana/github.html #
4-
#-------------------------------------------------------------------------------#
5-
61
name: Qodana
72
on:
83
workflow_dispatch:
94
pull_request:
105
push:
11-
branches:
12-
- main
13-
- master
6+
branches: # Specify your branches here
7+
- main # The 'main' branch
8+
- 'releases/*' # The release branches
149

1510
jobs:
1611
qodana:
@@ -20,21 +15,14 @@ jobs:
2015
pull-requests: write
2116
checks: write
2217
steps:
23-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v3
2419
with:
25-
ref: ${{ github.event.pull_request.head.sha }}
26-
fetch-depth: 0
20+
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
21+
fetch-depth: 0 # a full history is required for pull request analysis
2722
- name: 'Qodana Scan'
2823
uses: JetBrains/qodana-action@v2026.1
29-
env:
30-
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
3124
with:
32-
# When pr-mode is set to true, Qodana analyzes only the files that have been changed
3325
pr-mode: false
34-
use-caches: true
35-
post-pr-comment: true
36-
use-annotations: true
37-
# Upload Qodana results (SARIF, other artifacts, logs) as an artifact to the job
38-
upload-result: false
39-
# quick-fixes available in Ultimate and Ultimate Plus plans
40-
push-fixes: 'none'
26+
env:
27+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_2047940364 }}
28+
QODANA_ENDPOINT: 'https://qodana.cloud'

0 commit comments

Comments
 (0)