Skip to content

Commit

Permalink
Add proper revision and branch name to sonar cloud configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Mi-La committed Aug 5, 2024
1 parent 826ffeb commit eb28714
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/sonar_cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ jobs:
--define sonar.test.inclusions="compiler/**/test/**/*.h,compiler/**/test/**/.cpp,test/**/*.h,test/**/*.cpp" \
--define sonar.scm.exclusions.disabled="true" \
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json" \
--define sonar.scm.revision="${{ github.event.workflow_run.head_sha }}" \
--define sonar.branch.name="${{ github.event.workflow_run.head_branch }}" \
--define sonar.pullrequest.key="${{ env.PULL_REQUEST_KEY }}" \
--define sonar.pullrequest.branch="${{ env.PULL_REQUEST_BRANCH }}" \
--define sonar.pullrequest.base="${{ env.PULL_REQUEST_BASE }}"

0 comments on commit eb28714

Please sign in to comment.