Skip to content

Commit 33f2445

Browse files
authored
Update qodana_code_quality.yml
1 parent 4292d80 commit 33f2445

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/qodana_code_quality.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,30 @@ name: Qodana
22
on:
33
workflow_dispatch:
44
pull_request:
5-
branches-ignore:
6-
- 'dependabot/**'
75
push:
86
branches:
97
- dev/main
108
- master
119
- main
12-
- '!dependabot/**'
1310

1411
jobs:
1512
qodana:
13+
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
1614
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
checks: write
1719
steps:
1820
- uses: actions/checkout@v4
1921
with:
20-
fetch-depth: 0
22+
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
23+
fetch-depth: 0 # a full history is required for pull request analysis
2124
- name: 'Qodana Scan'
22-
uses: JetBrains/[email protected]
25+
uses: JetBrains/qodana-action@main
26+
with:
27+
upload-result: true
28+
github-token: ${{ secrets.FORLIY_ACCESS_TOKEN }}
2329
env:
24-
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
30+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below
31+
GITHUB_TOKEN: ${{ secrets.FORLIY_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)