From 1a74cc680211e0f77763cc2cc127cb1665df62d1 Mon Sep 17 00:00:00 2001 From: Heyner Cuevas <73818312+Heyner128@users.noreply.github.com> Date: Sun, 27 Oct 2024 14:12:19 +0100 Subject: [PATCH] Add sonarqube scan to CI workflow --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af38703..4b5a8c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,16 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@v3.0.0 + with: + args: > + -Dsonar.organization=${{ vars.SONAR_ORGANIZATION }} + -Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }} + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} + - name: Install dependencies run: npm i