From d0464c3049b638f597c204f47d042ce96fe13026 Mon Sep 17 00:00:00 2001 From: VAFEIADIS Nikos Date: Wed, 12 Jul 2023 16:10:09 +0300 Subject: [PATCH] Updates on sonar workflow --- .github/workflows/sonar.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 26560ec..c735c14 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -1,15 +1,13 @@ name: SonarCloud on: push: - branches: [ 'main', 'feature/*' ] + branches: [ 'main', 'release/*' ] tags: [ v* ] workflow_dispatch: jobs: run-sast: name: Build and run SonarQube analysis - # Run on external PRs, but not on internal PRs since those will be run by push to branch - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - name: Checkout project sources @@ -42,7 +40,7 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN}} - name: Build with Gradle Wrapper & Run Sonar if: (steps.checksecrets.outputs.secretspresent == 'YES') - uses: gradle/gradle-build-action@v2.5.1 + uses: gradle/gradle-build-action@v2.6.0 with: gradle-version: wrapper arguments: build sonar --info --full-stacktrace -Dsonar.organization=${{ github.repository_owner }} -Dsonar.projectKey=${{ env.PROJECTKEY }} @@ -50,3 +48,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} CI: true +