Skip to content

Commit

Permalink
Another attempt to fix qodana secret issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hurricup committed Oct 5, 2023
1 parent 54a39e6 commit c288c4a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/_qodana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 }}
Expand Down

0 comments on commit c288c4a

Please sign in to comment.