From 4e23b80e3178fadfbf5f027e212e958bf31e78a1 Mon Sep 17 00:00:00 2001 From: Martijn Govers Date: Tue, 3 Sep 2024 08:55:08 +0200 Subject: [PATCH] sonar cloud test Signed-off-by: Martijn Govers --- .github/workflows/build-test-and-sonar.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-test-and-sonar.yml b/.github/workflows/build-test-and-sonar.yml index 6c16b2ca..072325b3 100644 --- a/.github/workflows/build-test-and-sonar.yml +++ b/.github/workflows/build-test-and-sonar.yml @@ -87,6 +87,7 @@ jobs: sed -i 's@/home/runner/work/power-grid-model-io/power-grid-model-io@/github/workspace@g' coverage.xml - name: SonarCloud Scan + if: ${{ (github.event_name == 'push') || (github.event.pull_request.head.repo.owner.login == 'PowerGridModel') }} uses: SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}