Skip to content

Commit 8760c26

Browse files
committed
fix project basedir?
1 parent da6bdd3 commit 8760c26

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,17 @@ jobs:
178178
with:
179179
name: clang-tidy
180180
path: ${{ env.BASEDIR }}/target_ws/src/$(basename $(pwd))
181+
- name: chown the target_ws because it came out of root-owned Docker container filesystem
182+
run: sudo chown -R "$USER:$USER" ${{ env.BASEDIR }}/target_ws
183+
- name: move sonar-project.properties from checkout into ICI output
184+
run: mv sonar-project.properties ${{ env.BASEDIR }}/target_ws
181185
- name: SonarQube Scan
182186
# Don't run if SONAR_TOKEN is not set (i.e. PR job from a fork)
183187
if: matrix.env.CCOV && steps.ici.outputs.target_test_results == '0' && env.SONAR_TOKEN != ''
184188
uses: SonarSource/sonarqube-scan-action@v6.0.0
189+
with:
190+
projectBaseDir: ${{ env.BASEDIR }}/target_ws
191+
185192
- name: Prepare target_ws for cache
186193
if: always() && !matrix.env.CCOV
187194
run: |

0 commit comments

Comments
 (0)