From 03636ccf18750eb8574a5578a0d9a98ad8685adb Mon Sep 17 00:00:00 2001 From: Enrico Vianello Date: Thu, 14 Sep 2023 14:04:32 +0200 Subject: [PATCH] Enable sonar analysis also on develop branch and update SONAR_TOKEN source value --- .github/workflows/sonar.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index d75ebf1d0..a8136225f 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -1,6 +1,9 @@ name: Sonar analysis -on: +on: + push: + branches: + - develop pull_request: types: [opened, edited, reopened, synchronize] @@ -28,7 +31,7 @@ jobs: - name: Sonar analysis env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_VIANELLO }} run: mvn -B -U install sonar:sonar -Dsonar.projectKey=indigo-iam_iam -Dsonar.organization=indigo-iam