From 01bcdcdfae78efc3056585c2297aacb2221f34ff Mon Sep 17 00:00:00 2001 From: Lukas Merz Date: Thu, 29 Aug 2024 15:00:08 +0200 Subject: [PATCH] SonarToken --- .github/workflows/main.yml | 2 ++ .github/workflows/sonar-analysis.yml | 9 +++++---- sonar-project.properties | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de5e582..eee8188 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,3 +22,5 @@ jobs: sonarcloud: name: SonarCloud uses: ./.github/workflows/sonar-analysis.yml + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/sonar-analysis.yml b/.github/workflows/sonar-analysis.yml index 0f4f85b..e783237 100644 --- a/.github/workflows/sonar-analysis.yml +++ b/.github/workflows/sonar-analysis.yml @@ -1,9 +1,10 @@ name: Analyze Code Quality -on: workflow_call - -env: - PYTHON_VERSION: '3.10' +on: + workflow_call: + secrets: + SONAR_TOKEN: + required: true jobs: sonarcloud: diff --git a/sonar-project.properties b/sonar-project.properties index 10b7dda..8f5caca 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,5 +1,5 @@ -sonar.projectKey=222262_GB3_search-api -sonar.projectName=222262_GB3_search-api +sonar.projectKey=gisktzh_gb3-search_api +sonar.organization=gisktzh # root path which is relative to the sonar-project.properties file location. sonar.sources=.