From 5af1e6ca0f2d32d7165ed65f39887a28df554976 Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 27 Oct 2025 20:15:00 -0400 Subject: [PATCH] setup sonarqube!! --- .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..f7f96e0 --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,21 @@ +name: Build + +on: + push: + branches: + - develop + + +jobs: + build: + name: Build and analyze + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - uses: SonarSource/sonarqube-scan-action@v6 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..3de1e4e --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=ComputerScienceHouse_conditional_b4074151-bbfd-4fc3-b87d-10f1c1f625ab