Skip to content

Commit 48df220

Browse files
authored
Use latest versions and remove out-of-date actions for sonar [AP-3937] (#1498)
# Description @swift-nav/algint-team Update github actions: - sonarcloud action is [deprecated](https://github.com/SonarSource/sonarcloud-github-action) # API compatibility Does this change introduce a API compatibility risk? No, just github actions. # JIRA Reference https://swift-nav.atlassian.net/browse/AP-3937
1 parent cd5403c commit 48df220

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616
- name: Sonarcloud Scan
17-
uses: sonarsource/sonarqube-scan-action@v5.2.0
17+
uses: sonarsource/sonarqube-scan-action@v5.3.1
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_AUTO }}
@@ -35,8 +35,8 @@ jobs:
3535
with:
3636
submodules: recursive
3737
fetch-depth: 0
38-
- name: Install sonar-scanner and build-wrapper
39-
uses: SonarSource/sonarcloud-github-c-cpp@v3
38+
- name: Install Build Wrapper
39+
uses: SonarSource/sonarqube-scan-action/[email protected]
4040
- name: Setup
4141
run: |
4242
sudo apt-get install llvm -y
@@ -47,19 +47,19 @@ jobs:
4747
run: |
4848
cmake -S c -B build -DCODE_COVERAGE=ON -DCMAKE_C_FLAGS=--coverage -DCMAKE_CXX_FLAGS=--coverage &&
4949
build-wrapper-linux-x86-64 --out-dir ./bw-output cmake --build build -j4 --target ccov-all-export
50-
- name: Run sonar-scanner
50+
- name: SonarCloud Scan
51+
uses: SonarSource/[email protected]
5152
env:
5253
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5354
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_C }}
54-
run: sonar-scanner
55-
-X
56-
-Dsonar.organization=swift-nav
57-
-Dsonar.projectName=libsbp-c
58-
-Dsonar.projectKey=swift-nav_libsbp_c
59-
-Dsonar.verbose=true
60-
-Dsonar.login=${{ secrets.SONAR_TOKEN_C }}
61-
-Dsonar.cfamily.threads=4
62-
-Dsonar.cfamily.llvm-cov.reportPath=./build/ccov/coverage.txt
63-
-Dsonar.sources=c/src/,c/include/
64-
-Dsonar.tests=c/test/
65-
-Dsonar.cfamily.build-wrapper-output=./bw-output
55+
with:
56+
args: >
57+
-Dsonar.organization=swift-nav
58+
-Dsonar.projectName=libsbp-c
59+
-Dsonar.projectKey=swift-nav_libsbp_c
60+
-Dsonar.verbose=true
61+
-Dsonar.cfamily.threads=4
62+
-Dsonar.cfamily.llvm-cov.reportPath=./build/ccov/coverage.txt
63+
-Dsonar.sources=c/src/,c/include/
64+
-Dsonar.tests=c/test/
65+
-Dsonar.cfamily.build-wrapper-output=./bw-output

0 commit comments

Comments
 (0)