Skip to content

Modern Docker Management, Designed for Everyone

ci/cd: add sonarqube analysis

Kyle Mendell9cd9c49c00e6
diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml
new file mode 100644
index 000000000..b56891bc4
--- /dev/null
+++ b/.github/workflows/sonar.yml
@@ -0,0 +1,20 @@
+name: SonarQube
+
+on:
+ push:
+ branches:
+ - main
+
+jobs:
+ build:
+ name: Codegate analyze
+ runs-on: depot-ubuntu-24.04-8
+
+ steps:
+ - uses: actions/checkout@v6
+ with:
+ fetch-depth: 0
+ - 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 000000000..a9cee554d
--- /dev/null
+++ b/sonar-project.properties
@@ -0,0 +1 @@
+sonar.projectKey=getarcaneapp_arcane_7820b102-6a29-478b-b61e-cbe482139fb0
\ No newline at end of file