From d24b946909a9c2ac10a998628809d5d7cd07ff94 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Mon, 12 Oct 2026 17:11:46 +0100 Subject: [PATCH] Remove the SonarQube scan workflow. --- .github/workflows/sonarqube-scan.yml | 58 ---------------------------- 1 file changed, 58 deletions(-) delete mode 100644 .github/workflows/sonarqube-scan.yml diff --git a/.github/workflows/sonarqube-scan.yml b/.github/workflows/sonarqube-scan.yml deleted file mode 100644 index a70a6d3ff..000000000 --- a/.github/workflows/sonarqube-scan.yml +++ /dev/null @@ -1,58 +0,0 @@ -# This workflow requires the following configuration in Github -# -# Variables: -# SONARQUBE_PROJECT_KEY - The project key in SonarQube -# -# Secrets: -# SONARQUBE_TOKEN - SonarQube API token -# SONARQUBE_HOST - The URL of the SonarQube host - -name: SonarQube scan - -on: - push: - branches: [ "master" ] - -concurrency: - group: sonarqube - cancel-in-progress: false - -jobs: - run-sonarqube-scan: - # Only run if the project key is set - if: vars.SONARQUBE_PROJECT_KEY != null - - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v7 - with: - fetch-depth: 0 - - - name: Create the scan properties file - run: | - cat < sonar-project.properties - sonar.projectKey=${{ vars.SONARQUBE_PROJECT_KEY }} - sonar.projectName=pgAdmin 4 - sonar.projectVersion=%VERSION% - - # Ignore templates and SQL scripts as they confuse the scanner - sonar.exclusions=**/templates/**/*, **/*.sql - - # Let SonarQube know where tests can be found - sonar.test.inclusions=**/tests/**, web/regression - - # Python compatibility - sonar.python.version=3.9, 3.10, 3.11, 3.12, 3.13, 3.14 - EOF - - APP_RELEASE=`grep "^APP_RELEASE" web/config.py | cut -d"=" -f2 | sed 's/ //g'` - APP_REVISION=`grep "^APP_REVISION" web/config.py | cut -d"=" -f2 | sed 's/ //g'` - APP_LONG_VERSION=${APP_RELEASE}.${APP_REVISION} - sed -i "s/%VERSION%/${APP_LONG_VERSION}/g" sonar-project.properties - - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@22918119ff8e1ca75a623e15c8296b6ea4fbe28f # v8.2.1 - env: - SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}