Qodana #146
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Qodana | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ 'master', 'release/**' ] | |
pull_request: | |
branches: [ 'master', 'release/**' ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
jobs: | |
qodana: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
checks: write | |
steps: | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.0.* | |
9.0.* | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit | |
fetch-depth: 0 # a full history is required for pull request analysis | |
- name: Restore tools | |
run: dotnet tool restore | |
- name: Restore packages | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore --configuration Release | |
- name: 'Qodana Scan' | |
uses: JetBrains/qodana-action@v2025.1 | |
with: | |
args: --ide,QDNET,--profile-name,qodana.recommended,--configuration,Release,--apply-fixes | |
push-fixes: pull-request | |
upload-result: true | |
env: | |
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} | |
- name: Upload SARIF report | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json |