File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,16 +42,18 @@ jobs:
4242 path : ' target-project'
4343
4444 - name : SonarQube Scan
45- uses : sonarsource/sonarqube-scan-action@v7
46- env :
47- SONAR_TOKEN : ${{ env.SONAR_TOKEN }}
48- SONAR_HOST_URL : http://localhost:9000
49- with :
50- args : >
51- -Dsonar.projectKey=test-project
52- -Dsonar.sources=target-project
53- -Dsonar.lang.patterns.bsl=**/*.bsl,**/*.os
54- -Dsonar.scm.disabled=true
45+ run : |
46+ docker run --rm --network="host" \
47+ -v "$(pwd):/usr/src" \
48+ --entrypoint /bin/bash \
49+ sonarsource/sonar-scanner-cli:12.1 \
50+ -c "rm -rf /opt/sonar-scanner/jre && sonar-scanner \
51+ -Dsonar.projectKey=test-project \
52+ -Dsonar.sources=. \
53+ -Dsonar.host.url=http://localhost:9000 \
54+ -Dsonar.token=${{ env.SONAR_TOKEN }} \
55+ -Dsonar.lang.patterns.bsl=**/*.bsl,**/*.os \
56+ -Dsonar.scm.disabled=true"
5557
5658 - name : Server Logs on Failure
5759 if : failure()
You can’t perform that action at this time.
0 commit comments