From aceaa6b95712508a219c264d82dd43db8a5134b1 Mon Sep 17 00:00:00 2001 From: Jeppe B <2jepp9350@gmail.com> Date: Thu, 28 May 2026 19:33:02 +0200 Subject: [PATCH] Fix Qodana workflow and Windows-style test gateway paths Update the Qodana workflow to use an available action version and avoid cloud-token failures when the secret is absent. Keep the test gateway path resolver using Windows path semantics for Windows-style inputs. --- .github/workflows/code_quality.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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