diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index aad667c708..096ae6568b 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -3,7 +3,10 @@ name: SonarQube Scan on: push: branches: + - main - sonarqube-integration +# pull_request: +# types: [opened, synchronize, reopened] jobs: build: @@ -13,7 +16,8 @@ jobs: - uses: actions/checkout@v4.1.1 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - uses: sonarsource/sonarqube-scan-action@v3 + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} diff --git a/sonar-project.properties b/sonar-project.properties index 0e09b39dbe..dd3b301bee 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1 +1,2 @@ sonar.projectKey=lichtblick +sonar.organization=lichtblick-suite