From d1836b8178bf90d39440f590b71c6d7765f0b4e7 Mon Sep 17 00:00:00 2001 From: Lokesh B Date: Wed, 29 May 2024 15:39:03 +0530 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 68ddb7b..1af447e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,16 +1,20 @@ name: Sonarqube WF - +on: + push: + branches: [ "master" ] jobs: sonar: - - name: SonarScanner for .NET 5 with pull request decoration support - uses: highbyte/sonarscan-dotnet@2.0 + runs-on: ubuntu-latest + steps: + - name: SonarScanner for .NET 5 with pull request decoration support + uses: highbyte/sonarscan-dotnet@2.0 with: # The key of the SonarQube project sonarProjectKey: text-summarizer # The name of the SonarQube project - sonarProjectName: text-summarizer + sonarProjectName: text-summarizer # The SonarQube server URL. For SonarCloud, skip this setting. - sonarHostname: http://20.106.208.220:9000 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + sonarHostname: "http://20.106.208.220:9000" + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}