From ca21655d833c43d7d2287916186e7d14cb882248 Mon Sep 17 00:00:00 2001 From: Will Hellinger Date: Wed, 19 Nov 2025 19:54:03 -0500 Subject: [PATCH 1/2] Initial sonarqube addition, including this branch for testing --- .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..09c3720 --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,21 @@ +name: SonarQube Scan + +on: + push: + branches: + - dev + - sonarqube-integration + +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..d4c3c6b --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=ComputerScienceHouse_letmein2_2b72cdb6-0dbe-4a5e-86a2-27b4495e5511 \ No newline at end of file From 717a2232737ff0c7b5a098cd2da8e9a122faff68 Mon Sep 17 00:00:00 2001 From: Will Hellinger Date: Wed, 19 Nov 2025 19:56:39 -0500 Subject: [PATCH 2/2] Only dev can update sonarqube --- .github/workflows/sonarqube.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 09c3720..fdf0503 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -4,7 +4,6 @@ on: push: branches: - dev - - sonarqube-integration jobs: build: