From 7654d967e8f45662ae8e377705603ccd44b7dc5d Mon Sep 17 00:00:00 2001 From: Florian Zumpe Date: Wed, 3 Jun 2026 15:19:24 +0200 Subject: [PATCH] =?UTF-8?q?.gitea/workflows/sonar-scanner.yaml=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/sonar-scanner.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/sonar-scanner.yaml diff --git a/.gitea/workflows/sonar-scanner.yaml b/.gitea/workflows/sonar-scanner.yaml new file mode 100644 index 0000000..f1546d7 --- /dev/null +++ b/.gitea/workflows/sonar-scanner.yaml @@ -0,0 +1,27 @@ +name: Sonarqube Scanner + +on: + push: + branches: + - main + + +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 }} + # If you wish to fail your job when the Quality Gate is red, uncomment the + # following lines. This would typically be used to fail a deployment. + # - uses: SonarSource/sonarqube-quality-gate-action@v1 + # timeout-minutes: 5 + # env: + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file