From fc6777d2b3c958c779fa8d49a5f5679bafded420 Mon Sep 17 00:00:00 2001 From: "jules.vinot" Date: Wed, 22 May 2024 14:23:06 +0200 Subject: [PATCH] Test Action id case sensitivity --- .github/workflows/build.yml | 25 +++++++++++++++++++------ sonar-project.properties | 6 ++++-- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 083be39..15f14ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,16 +5,29 @@ on: - test-action pull_request: types: [opened, synchronize, reopened] +#jobs: +# sonarcloud: +# name: SonarCloud +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis +# - name: SonarCloud Scan +# uses: sonarsource/sonarqube-scan-action@master +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any +# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_GHA }} jobs: - sonarcloud: - name: SonarCloud + build: + name: Build runs-on: ubuntu-latest + permissions: read-all steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@6c92dc36709458d7d6e1ed85a661f492d074301a + - uses: sonarsource/sonarqube-scan-action@master env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_GHA }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/sonar-project.properties b/sonar-project.properties index bdb6479..41150dc 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,5 +1,7 @@ -sonar.projectKey=testavinot_test-sc-scan-gha -sonar.organization=testavinot +#sonar.projectKey=testavinot_test-sc-scan-gha +#sonar.organization=testavinot + +sonar.projectKey=test-action # This is the name and version displayed in the SonarCloud UI. #sonar.projectName=test-sc-scan-gha