Skip to content

Commit 3845c9b

Browse files
committed
Improce Qodana job experience by allowing on PR comments and storing results as artifacts
1 parent 2dbe0df commit 3845c9b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/qodana.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
schedule:
1616
- cron: '17 5 * * 0' # Random time
1717
workflow_dispatch:
18+
inputs:
19+
upload-result-as-artifact:
20+
description: 'Upload Qodana result as artifact'
21+
required: false
22+
default: 'false'
1823

1924
concurrency:
2025
group: ${{ github.workflow }}-${{ github.ref }}
@@ -27,6 +32,7 @@ jobs:
2732
runs-on: ubuntu-latest
2833
permissions:
2934
contents: write
35+
pull-requests: write
3036
checks: write
3137
security-events: write
3238
steps:
@@ -52,6 +58,9 @@ jobs:
5258
cache-dir: ${{ runner.temp }}/qodana/caches
5359
primary-cache-key: ${{ runner.os }}-qodana-${{ github.ref }}-${{ hashFiles('**/*.csproj') }}
5460
additional-cache-key: ${{ runner.os }}-qodana-${{ github.ref }}
61+
upload-result: ${{github.event_name == 'workflow_dispatch' && inputs.upload-result-as-artifact == true}}
62+
post-pr-comment: true
63+
github-token: ${{ github.token }}
5564
env:
5665
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
5766
- name: 📊 upload sarif file for GitHub Advanced Security Dashboard

0 commit comments

Comments
 (0)