From e20e0a22e5fc74b502e15f4ad0334b6a321b6476 Mon Sep 17 00:00:00 2001 From: Will Hellinger Date: Wed, 19 Nov 2025 20:06:33 -0500 Subject: [PATCH] Add sonarqube support via workflow --- .github/workflows/sonarqube.yml | 20 ++++++++++++++++++++ sonar-project.properties | 1 + 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/sonarqube.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml new file mode 100644 index 0000000..b820eb2 --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,20 @@ +name: SonarQube Scan + +on: + push: + branches: + - site + +jobs: + build: + name: Build and analyze + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: SonarSource/sonarqube-scan-action@v6 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..d48248a --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=ComputerScienceHouse_ThemeSwitcher_7c908773-db90-493d-aae5-e18ddb41c7e0 \ No newline at end of file