Fix: Sonarqube workflow workspace analysis
SonarQube Analysis / sonar (push) Failing after 7s

This commit is contained in:
2026-05-04 07:26:18 +00:00
parent 15e471cc20
commit 4b080259a6
+5 -6
View File
@@ -8,6 +8,8 @@ on:
jobs: jobs:
sonar: sonar:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: sonarsource/sonar-scanner-cli:latest
steps: steps:
- name: Checkout repository - name: Checkout repository
@@ -24,12 +26,9 @@ jobs:
- name: Run SonarScanner - name: Run SonarScanner
run: | run: |
docker run --rm \ sonar-scanner \
--network dev-platform_default \ -Dsonar.host.url="${{ vars.SONAR_HOST_URL }}" \
-e SONAR_HOST_URL="${{ vars.SONAR_HOST_URL }}" \ -Dsonar.token="${{ secrets.SONAR_TOKEN }}" \
-e SONAR_TOKEN="${{ secrets.SONAR_TOKEN }}" \
-v "$PWD:/usr/src" \
sonarsource/sonar-scanner-cli \
-Dsonar.projectKey="${{ vars.SONAR_PROJECT_KEY }}" \ -Dsonar.projectKey="${{ vars.SONAR_PROJECT_KEY }}" \
-Dsonar.projectName="${{ vars.SONAR_PROJECT_KEY }}" \ -Dsonar.projectName="${{ vars.SONAR_PROJECT_KEY }}" \
-Dsonar.sources=. \ -Dsonar.sources=. \