From fcc4c971f461765eebf343e52a22dd3f02fdeffc Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Fri, 1 Dec 2023 14:25:54 +0100 Subject: [PATCH] sonar --- .github/workflows/test_python_cplusplus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_python_cplusplus.yml b/.github/workflows/test_python_cplusplus.yml index 7876f8bf33..496779c6ec 100644 --- a/.github/workflows/test_python_cplusplus.yml +++ b/.github/workflows/test_python_cplusplus.yml @@ -95,7 +95,7 @@ jobs: fail_ci_if_error: true - name: Run sonar-scanner - if: github.repository_owner == 'AMICI-dev' + if: ${{ env.SONAR_TOKEN != '' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -170,7 +170,7 @@ jobs: fail_ci_if_error: true - name: Run sonar-scanner - if: github.repository_owner == 'AMICI-dev' + if: ${{ env.SONAR_TOKEN != '' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}