From 5b61e5cef7419dc37d5fe3ef804bc23f169573c1 Mon Sep 17 00:00:00 2001 From: SeSo Date: Tue, 19 Sep 2023 15:44:24 -0700 Subject: [PATCH] chore: remove sonar cloud CI analysis --- .github/workflows/scan-code-sonar.yaml | 31 -------------------------- .github/workflows/test.yaml | 14 ------------ sonar-project.properties | 19 ---------------- 3 files changed, 64 deletions(-) delete mode 100644 .github/workflows/scan-code-sonar.yaml delete mode 100644 sonar-project.properties diff --git a/.github/workflows/scan-code-sonar.yaml b/.github/workflows/scan-code-sonar.yaml deleted file mode 100644 index e64c301ab5..0000000000 --- a/.github/workflows/scan-code-sonar.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Sonarcloud Scan Code - -on: - workflow_call: - secrets: - github-token: - required: true - sonar-token: - required: true - push: - branches: [main, develop] - pull_request: - # The branches below must be a subset of the branches above - branches: [main, develop] - -concurrency: - group: callee-sonarcloud-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - sonarcloud: - runs-on: ubuntu-latest - steps: - - 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 }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7d60d871e9..e7d306a2e5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -146,20 +146,6 @@ jobs: run: | rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache - # trivy-image-scan: - # needs: docker-build - # uses: bcgov/pipeline-templates/.github/workflows/trivy-container.yaml@main - # with: - # IMAGE: gregnrobinson/bcgov-nginx-demo - # TAG: latest - # sonar-repo-scan: - # uses: bcgov/pipeline-templates/.github/workflows/sonar-scanner.yaml@main - # with: - # ORG: ci-testing - # PROJECT_KEY: bcgov-pipeline-templates - # URL: https://sonarcloud.io - # secrets: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} zap-owasp: needs: ["docker-build", "install-client-dev-tools", "install-server-dev-tools"] diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index ef03ea84a0..0000000000 --- a/sonar-project.properties +++ /dev/null @@ -1,19 +0,0 @@ -# https://docs.sonarqube.org/latest/analysis/analysis-parameters/ -sonar.projectKey=bcgov_cas-registration -sonar.organization=bcgov-sonarcloud -sonar.host.url=https://sonarcloud.io -sonar.projectName=cas-registration -sonar.verbose=true - -sonar.python.file.suffixes=py -sonar.python.version=3.9 - -# Path is relative to the sonar-project.properties file. Defaults to . -sonar.sources=. - -sonar.exclusions=**/Makefile, **/*.Dockerfile -sonar.test.exclusions=*.feature -sonar.tests.inclusions=**/*.test.tsx - -# Encoding of the source code. Default is default system encoding -sonar.sourceEncoding=UTF-8