From 0ec745f783f5a0bc88a567e7bfdd81d9da584690 Mon Sep 17 00:00:00 2001 From: Martijn Govers Date: Mon, 11 Aug 2025 08:51:41 +0200 Subject: [PATCH] sonarqube-scan-action Signed-off-by: Martijn Govers --- .github/workflows/sonar.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index fbbd9aab..a2f59ebe 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -30,10 +30,10 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Setup Python 3.11 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.13" - name: Install in develop mode run: | @@ -47,9 +47,9 @@ jobs: # Known bug: https://community.sonarsource.com/t/sonar-on-github-actions-with-python-coverage-source-issue/36057 sed -i 's@/home/runner/work/power-grid-model-io/power-grid-model-io@/github/workspace@g' python_coverage.xml - - name: SonarCloud Scan + - name: SonarQube Scan if: ${{ (github.event_name == 'push') || (github.event.pull_request.head.repo.owner.login == 'PowerGridModel') }} - uses: SonarSource/sonarqube-scan-action@master + uses: SonarSource/sonarqube-scan-action@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file