From 0371e45af7da2676a7528ebd9ec89d8ede4e6dd5 Mon Sep 17 00:00:00 2001 From: Andre Ferraro Date: Thu, 6 Aug 2026 13:41:10 -0300 Subject: [PATCH] Add SonarQube Gitea Actions workflow and Gitflow quality gate setup. Co-authored-by: Cursor --- .gitea/workflows/sonar.yml | 33 +++++++++++++++++++++++++++++++++ sonar-project.properties | 6 ++++++ 2 files changed, 39 insertions(+) create mode 100644 .gitea/workflows/sonar.yml create mode 100644 sonar-project.properties diff --git a/.gitea/workflows/sonar.yml b/.gitea/workflows/sonar.yml new file mode 100644 index 0000000..3857cec --- /dev/null +++ b/.gitea/workflows/sonar.yml @@ -0,0 +1,33 @@ +name: sonar + +on: + push: + branches: + - main + - develop + - "release/**" + pull_request: + branches: + - main + - develop + - "release/**" + +jobs: + sonar: + name: sonar + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: SonarQube Scan + Quality Gate + uses: sonarsource/sonarqube-scan-action@v5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + with: + args: > + -Dsonar.qualitygate.wait=true + -Dsonar.qualitygate.timeout=300 diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..262ae87 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,6 @@ +sonar.projectKey=TicketLab_MCP +sonar.projectName=TicketLab_MCP +sonar.sources=. +sonar.exclusions=**/.gitea/**,**/.git/**,**/.cursor/** +sonar.sourceEncoding=UTF-8 +sonar.python.version=3