Skip to content

Commit 8c80329

Browse files
authored
CI: Update sonar-scanner (#2167)
* CI: Update sonar-scanner * Fix: `The property 'sonar.login' is deprecated and will be removed in the future. Please use the 'sonar.token' property instead when passing a token.` * Remove sonar cache config and GHA cache action By now, cache is stored on the server by default see https://docs.sonarcloud.io/advanced-setup/languages/c-c-objective-c/#analysis-cache * Sonar token to secrets
1 parent 98c782d commit 8c80329

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

.github/workflows/test_python_cplusplus.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- run: echo "BNGPATH=${GITHUB_WORKSPACE}/ThirdParty/BioNetGen-2.7.0" >> $GITHUB_ENV
3737

3838
# sonar cloud
39-
- run: echo "SONAR_SCANNER_VERSION=4.7.0.2747" >> $GITHUB_ENV
39+
- run: echo "SONAR_SCANNER_VERSION=5.0.1.3006" >> $GITHUB_ENV
4040
- run: echo "SONAR_SCANNER_HOME=${HOME}/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux" >> $GITHUB_ENV
4141
- run: echo "SONAR_SCANNER_OPTS=-server" >> $GITHUB_ENV
4242
- run: echo "${SONAR_SCANNER_HOME}/bin" >> $GITHUB_PATH
@@ -77,13 +77,6 @@ jobs:
7777
run: |
7878
CI_SONARCLOUD=TRUE scripts/buildAmici.sh
7979
80-
- name: Cache sonar files
81-
id: cache-sonar
82-
uses: actions/cache@v3
83-
with:
84-
path: sonar_cache
85-
key: ${{ runner.os }}-sonar_cache
86-
8780
- name: C++ tests
8881
run: |
8982
scripts/run-cpp-tests.sh
@@ -157,6 +150,7 @@ jobs:
157150
- name: Run sonar-scanner
158151
env:
159152
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
160154
run: |
161155
sonar-scanner \
162156
-Dsonar.cfamily.build-wrapper-output=bw-output \

sonar-project.properties

-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# https://sonarcloud.io/documentation/analysis/languages/cfamily/
55

66
sonar.host.url=https://sonarcloud.io
7-
sonar.login=af35cb17710485d21c8e453a77f1f008eae1f7a4
87
sonar.organization=icb-dcm
98
sonar.projectKey=ICB-DCM_AMICI
109

@@ -27,8 +26,6 @@ sonar.sourceEncoding=UTF-8
2726

2827
sonar.cfamily.threads=2
2928
sonar.cfamily.gcov.reportsPath=build
30-
sonar.cfamily.cache.enabled=true
31-
sonar.cfamily.cache.path=sonar_cache
3229
sonar.cpp.std=c++17
3330

3431
sonar.python.coverage.reportPaths=build/coverage_py.xml

0 commit comments

Comments
 (0)