From cfda4ee870fbe4611cce931ce6e1c44bbb67ecd2 Mon Sep 17 00:00:00 2001 From: Sven Boeckelmann Date: Wed, 6 Nov 2024 12:07:49 +0100 Subject: [PATCH] trying to fix sonar in workflow --- .github/workflows/maven-cli.yml | 5 +++-- .mvn/settings.xml | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-cli.yml b/.github/workflows/maven-cli.yml index ffdb9aa..f103de1 100644 --- a/.github/workflows/maven-cli.yml +++ b/.github/workflows/maven-cli.yml @@ -25,12 +25,13 @@ jobs: - id: run_sonarqube name: sonarqube + env: + SONAR_TOKEN: ${{ secrets.CG_SONAR_HOST_URL }} run: | mvn \ -s .mvn/settings.xml \ --no-transfer-progress \ --batch-mode \ -Pcoverage \ - -Dsonar.host.url=${{ secrets.CG_SONAR_HOST_URL }} \ - -Dsonar.login=${{ secrets.CG_SONAR_LOGIN }} \ + -Psonar \ clean verify sonar:sonar diff --git a/.mvn/settings.xml b/.mvn/settings.xml index 355bbc2..526545d 100644 --- a/.mvn/settings.xml +++ b/.mvn/settings.xml @@ -24,4 +24,16 @@ ${env.OPENEPCIS_OSSRH_PASSWORD} + + + sonar + + true + + + https://sonar.company-group.com + ${env.SONAR_TOKEN} + + + \ No newline at end of file