diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml new file mode 100644 index 0000000..8b99446 --- /dev/null +++ b/.gitea/workflows/sonarqube.yml @@ -0,0 +1,24 @@ +name: SonarQube Scan + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + +jobs: + sonarqube: + name: SonarQube Trigger + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Disables shallow clone for more accurate blame/analysis data + + - name: Run SonarQube Scanner + uses: SonarSource/sonarqube-scan-action@v4 + env: + SONAR_TOKEN: http://docker01.fritz.box:9001 + SONAR_HOST_URL: sqp_450c392dfb94696fc68a00a0dca31bf93dfaa350