Add SonarQube Gitea Actions workflow and Gitflow quality gate setup.
sonar / sonar (push) Successful in 2m21s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Andre Ferraro
2026-08-06 13:41:10 -03:00
co-authored by Cursor
parent 55c5e370e1
commit 0371e45af7
2 changed files with 39 additions and 0 deletions
+33
View File
@@ -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
+6
View File
@@ -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