diff --git a/.github/workflows/test_python_cplusplus.yml b/.github/workflows/test_python_cplusplus.yml index 8a4eaa3bb8..416252ee4b 100644 --- a/.github/workflows/test_python_cplusplus.yml +++ b/.github/workflows/test_python_cplusplus.yml @@ -36,7 +36,7 @@ jobs: - run: echo "BNGPATH=${GITHUB_WORKSPACE}/ThirdParty/BioNetGen-2.7.0" >> $GITHUB_ENV # sonar cloud - - run: echo "SONAR_SCANNER_VERSION=4.7.0.2747" >> $GITHUB_ENV + - run: echo "SONAR_SCANNER_VERSION=5.0.1.3006" >> $GITHUB_ENV - run: echo "SONAR_SCANNER_HOME=${HOME}/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux" >> $GITHUB_ENV - run: echo "SONAR_SCANNER_OPTS=-server" >> $GITHUB_ENV - run: echo "${SONAR_SCANNER_HOME}/bin" >> $GITHUB_PATH @@ -77,13 +77,6 @@ jobs: run: | CI_SONARCLOUD=TRUE scripts/buildAmici.sh - - name: Cache sonar files - id: cache-sonar - uses: actions/cache@v3 - with: - path: sonar_cache - key: ${{ runner.os }}-sonar_cache - - name: C++ tests run: | scripts/run-cpp-tests.sh @@ -157,6 +150,7 @@ jobs: - name: Run sonar-scanner env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | sonar-scanner \ -Dsonar.cfamily.build-wrapper-output=bw-output \ diff --git a/sonar-project.properties b/sonar-project.properties index 6b824acb66..4ded528912 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -4,7 +4,6 @@ # https://sonarcloud.io/documentation/analysis/languages/cfamily/ sonar.host.url=https://sonarcloud.io -sonar.login=af35cb17710485d21c8e453a77f1f008eae1f7a4 sonar.organization=icb-dcm sonar.projectKey=ICB-DCM_AMICI @@ -27,8 +26,6 @@ sonar.sourceEncoding=UTF-8 sonar.cfamily.threads=2 sonar.cfamily.gcov.reportsPath=build -sonar.cfamily.cache.enabled=true -sonar.cfamily.cache.path=sonar_cache sonar.cpp.std=c++17 sonar.python.coverage.reportPaths=build/coverage_py.xml