diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 0ff8a24e..431c4a92 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -24,10 +24,28 @@ jobs: run: | mkdir -p "${RUNNER_TEMP}/qodana/caches" mkdir -p "${RUNNER_TEMP}/qodana/results" + - name: Detect Qodana Cloud token + id: qodana-token + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} + run: | + if [ -n "${QODANA_TOKEN:-}" ]; then + echo "present=true" >> "$GITHUB_OUTPUT" + else + echo "present=false" >> "$GITHUB_OUTPUT" + fi + - name: 'Qodana Scan' - uses: JetBrains/qodana-action@v2025.3 + if: ${{ steps.qodana-token.outputs.present == 'true' }} + uses: JetBrains/qodana-action@v2026.1 with: pr-mode: false env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} QODANA_ENDPOINT: 'https://qodana.cloud' + + - name: 'Qodana Scan (without cloud upload)' + if: ${{ steps.qodana-token.outputs.present != 'true' }} + uses: JetBrains/qodana-action@v2026.1 + with: + pr-mode: false