From 0f7b22680f4ddb8ce74d7b91df873a51b3e50426 Mon Sep 17 00:00:00 2001 From: Sumesh Punakkal Kariyil Date: Wed, 30 Mar 2022 13:11:58 -0700 Subject: [PATCH] Update reports-api-cd.yml --- .github/workflows/reports-api-cd.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/reports-api-cd.yml b/.github/workflows/reports-api-cd.yml index 2c1180a..c3ee014 100644 --- a/.github/workflows/reports-api-cd.yml +++ b/.github/workflows/reports-api-cd.yml @@ -18,7 +18,19 @@ env: APP_NAME: eao-project-reports-api jobs: + sonar-scan: + if: github.event_name == 'push' && github.repository == 'bcgov/eao-project-reports' + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} build-and-push-image-to-ghcr: + needs: sonar-scan if: github.event_name == 'push' && github.repository == 'bcgov/eao-project-reports' runs-on: ubuntu-latest strategy: