From aa68857495e1db92dfcc9a3a638328d47d9564df Mon Sep 17 00:00:00 2001 From: Gabriel Santos Date: Tue, 26 Nov 2024 12:29:25 -0300 Subject: [PATCH] Add to test --- .github/workflows/sonar_analysis.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sonar_analysis.yml b/.github/workflows/sonar_analysis.yml index 73c0ad4..561e8c3 100644 --- a/.github/workflows/sonar_analysis.yml +++ b/.github/workflows/sonar_analysis.yml @@ -12,6 +12,8 @@ env: PR_NUMBER: ${{ github.event.number }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_SECRET }} + SONAR_PROJECT_KEY: "trustly-ios" + SONAR_PROJECT_NAME: "trustly-ios" jobs: build: @@ -48,11 +50,16 @@ jobs: - name: SonarQube Analysis run: | sonar-scanner \ - -Dsonar.host.url=https://sonarqube.trustly.one \ - -Dsonar.login="${SONAR_TOKEN}" \ - -Dsonar.projectKey="trustly-ios" \ - -Dsonar.projectName="trustly-ios" \ - -Dsonar.branch.name="${{ github.head_ref }}" \ + -Dsonar.host.url=${SONAR_HOST_URL} \ + -Dsonar.login=${SONAR_TOKEN} \ + -Dsonar.projectKey=${SONAR_PROJECT_KEY} \ + -Dsonar.projectName=${SONAR_PROJECT_NAME} \ + -Dsonar.pullrequest.base="${{ github.base_ref }}" \ + -Dsonar.pullrequest.branch="${{ github.head_ref }}" \ + -Dsonar.pullrequest.key="${{ github.event.pull_request.number }}" \ + -Dsonar.scm.revision="${{ github.event.pull_request.head.sha }}" \ -Dsonar.sources="." \ - -Dsonar.exclusions="**/Pods/**,**/Tests/**" \ - -Dsonar.verbose=true \ No newline at end of file + -Dsonar.exclusions="**/Tests/**" \ + -Dsonar.verbose=true \ + -Dsonar.sourceEncoding=UTF-8 \ + -Dsonar.scm.disabled=true \ No newline at end of file