From c288c4ad01047a5992d9894d16ae0383435d2d98 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Thu, 5 Oct 2023 06:51:03 +0400 Subject: [PATCH] Another attempt to fix qodana secret issue --- .github/workflows/_qodana.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_qodana.yml b/.github/workflows/_qodana.yml index b7d7dbebf0..d60c3aab06 100644 --- a/.github/workflows/_qodana.yml +++ b/.github/workflows/_qodana.yml @@ -10,15 +10,14 @@ jobs: runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - HAVE_QODANA_TOKEN: ${{ secrets.QODANA_TOKEN == '' }} + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} steps: - uses: actions/checkout@v4 - name: Qodana Scan uses: JetBrains/qodana-action@v2023.2.6 env: - QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} - QODANA_LINTER: ${{ env.HAVE_QODANA_TOKEN == 'true' && 'jetbrains/qodana-jvm' || 'jetbrains/qodana-jvm-community' }} + QODANA_LINTER: ${{ env.QODANA_TOKEN == '' && 'jetbrains/qodana-jvm-community' || 'jetbrains/qodana-jvm' }} with: use-caches: false args: --baseline,.qodana/qodana.sarif.json,--linter,${{ env.QODANA_LINTER }}