From 7b3d68103f52af73641fbfe4deed386b14305471 Mon Sep 17 00:00:00 2001 From: Griefed Date: Fri, 21 Jul 2023 21:18:45 +0200 Subject: [PATCH] ci: Use Qodana recommended starting point --- .github/workflows/qodana.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml index 0ecdad8f4..20e56f0c2 100644 --- a/.github/workflows/qodana.yml +++ b/.github/workflows/qodana.yml @@ -1,21 +1,22 @@ name: Qodana Scan - on: - push: - tags-ignore: - - '**' + workflow_dispatch: pull_request: + push: jobs: qodana: runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + checks: write steps: - uses: actions/checkout@v3 with: - fetch-depth: 0 + 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: 'Qodana Scan' uses: JetBrains/qodana-action@v2023.2 env: - QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} - with: - use-caches: true \ No newline at end of file + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below \ No newline at end of file