From 0cfb5fdfc8bc25c27587a85364a7df64516fe39b Mon Sep 17 00:00:00 2001 From: Will Hellinger Date: Wed, 19 Nov 2025 20:55:14 -0500 Subject: [PATCH] Add sonarqube support via github workflow --- .github/workflows/sonarqube.yml | 21 +++++++++++++++++++++ sonar-project.properties | 1 + 2 files changed, 22 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..e81d74e --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,21 @@ +name: SonarQube Scan + +on: + push: + branches: + - develop + + +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..cbc77f7 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=ComputerScienceHouse_eac_24510cde-e211-4eab-ac95-e2223dc65eed \ No newline at end of file