Skip to content

Commit f0c769a

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] sonarcloud deprecation replacement. https://github.com/SonarSource/sonarqube-scan-action
Warning This action is deprecated and will be removed in a future release. Please use the sonarqube-scan-action action instead. The sonarqube-scan-action is a drop-in replacement for this action.
1 parent a3541ca commit f0c769a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
run: |
3939
make dependencies
4040
41-
- name: Install sonar-scanner and build-wrapper
42-
uses: sonarsource/sonarcloud-github-c-cpp@v3
41+
- name: Install Build Wrapper
42+
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@master
4343

4444
# yamllint disable rule:line-length
4545
- name: Run build-wrapper
@@ -57,12 +57,13 @@ jobs:
5757
gcovr -e "src/tests/*" --sonarqube > coverage.xml
5858
5959
# yamllint disable rule:line-length
60-
- name: Run sonar-scanner
60+
- name: Analyze with SonarQube / SonarCloud
61+
uses: SonarSource/sonarqube-scan-action@master
6162
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
64-
run: |
65-
sonar-scanner \
66-
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json" \
64+
with:
65+
# Consult https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/scanners/sonarscanner/ for more information and options
66+
args: >
67+
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
6768
--define sonar.coverageReportPaths=coverage.xml
6869
# yamllint enable rule:line-length

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy