Skip to content

Commit 1075597

Browse files
authored
Update GitHub Actions versions and Sonar scan args (#21)
1 parent 805710a commit 1075597

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
env:
1313
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1616
with:
1717
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
1818
- name: Install Build Wrapper
19-
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v4
19+
uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v7
2020
env:
2121
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} # SonarQube URL is stored in a GitHub secret
2222
- name: Run Build Wrapper
@@ -25,12 +25,12 @@ jobs:
2525
cmake -S . -B build
2626
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build/ --config Release
2727
- name: SonarQube Scan
28-
uses: SonarSource/sonarqube-scan-action@v4
28+
uses: SonarSource/sonarqube-scan-action@v7
2929
env:
3030
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} # Put the name of your token here
3131
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} # SonarQube URL is stored in a GitHub secret
3232
with:
3333
# if you are using using sonarqube 10.5 or earlier, replace sonar.cfamily.compile-commands with sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
3434
# as build-wrapper does not generate a compile_commands.json file before sonarqube 10.6
3535
args: >
36-
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
36+
--define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json

0 commit comments

Comments
 (0)