Skip to content

Commit cb5f3a2

Browse files
committed
опять докер
1 parent 566eae4 commit cb5f3a2

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/pluginTest.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)