Skip to content

Commit cecaa53

Browse files
committed
Update Sonar Source Analysis workflow to use updated sonar-scanner action
1 parent 08abe23 commit cecaa53

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/sonar-source.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
25-
- name: Install sonar-scanner and build-wrapper
26-
uses: SonarSource/sonarcloud-github-c-cpp@v2
25+
- name: Install build-wrapper
26+
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v5
2727
- name: Install dependencies
2828
run: |
2929
sudo apt-get update
@@ -78,9 +78,10 @@ jobs:
7878
echo "\n ... \n"
7979
tail -n 7 "$FILE"
8080
- name: Run sonar-scanner
81+
uses: SonarSource/sonarqube-scan-action@v5
8182
env:
8283
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8384
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
84-
run: |
85-
source $(find /home -path "*/bin/*" -name "*thisbdm.sh")
86-
sonar-scanner -X --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
85+
with:
86+
args: >
87+
--define sonar.cfamily.build-wrapper-output=${{ env.BUILD_WRAPPER_OUT_DIR }}

0 commit comments

Comments
 (0)