diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml index 88cda59..ddfca07 100644 --- a/.gitea/workflows/sonarqube.yml +++ b/.gitea/workflows/sonarqube.yml @@ -8,6 +8,8 @@ on: jobs: sonar: runs-on: ubuntu-latest + container: + image: sonarsource/sonar-scanner-cli:latest steps: - name: Checkout repository @@ -24,12 +26,9 @@ jobs: - name: Run SonarScanner run: | - docker run --rm \ - --network dev-platform_default \ - -e SONAR_HOST_URL="${{ vars.SONAR_HOST_URL }}" \ - -e SONAR_TOKEN="${{ secrets.SONAR_TOKEN }}" \ - -v "$PWD:/usr/src" \ - sonarsource/sonar-scanner-cli \ + sonar-scanner \ + -Dsonar.host.url="${{ vars.SONAR_HOST_URL }}" \ + -Dsonar.token="${{ secrets.SONAR_TOKEN }}" \ -Dsonar.projectKey="${{ vars.SONAR_PROJECT_KEY }}" \ -Dsonar.projectName="${{ vars.SONAR_PROJECT_KEY }}" \ -Dsonar.sources=. \