From 16ca3e17e8f174511a4e080b443ef1b835625672 Mon Sep 17 00:00:00 2001 From: mtpoly <128363128+mt-polygon-technology@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:32:38 +0100 Subject: [PATCH 1/3] Update sonarqube.yml --- .github/workflows/sonarqube.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 30c260db..0f5ef01a 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -1,22 +1,24 @@ -name: SonarQube analysis - +name: Security Build on: push: branches: + - main - develop - + - staging + workflow_dispatch: {} + pull_request: + types: [opened, synchronize, reopened] + jobs: - sonarqube: + sonarcloud: + name: SonarCloud runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - # Disabling shallow clone is recommended for improving relevancy of reporting. - fetch-depth: 0 - - # Triggering SonarQube analysis as results of it are required by Quality Gate check. - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@master - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 0d68c4d25736eb9e8b17d6070b096cf88684305e Mon Sep 17 00:00:00 2001 From: mtpoly <128363128+mt-polygon-technology@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:33:48 +0100 Subject: [PATCH 2/3] Update sonar-project.properties --- sonar-project.properties | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonar-project.properties b/sonar-project.properties index d895e6c8..f71c3f08 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1 +1,3 @@ sonar.projectKey=zkevm-bridge-ui +sonar.projectKey=0xPolygonHermez_zkevm-bridge-ui +sonar.organization=0xPolygonHermez From 5ff91bc66adf073fd997d6a9d248d94ba696ac8d Mon Sep 17 00:00:00 2001 From: mtpoly <128363128+mt-polygon-technology@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:34:00 +0100 Subject: [PATCH 3/3] Update sonar-project.properties --- sonar-project.properties | 1 - 1 file changed, 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index f71c3f08..45602dfa 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,3 +1,2 @@ -sonar.projectKey=zkevm-bridge-ui sonar.projectKey=0xPolygonHermez_zkevm-bridge-ui sonar.organization=0xPolygonHermez