Compare commits

...

4 Commits

Author SHA1 Message Date
b823a75886 Update .gitea/workflows/sonar.yml
All checks were successful
SonarQube Analysis / SonarQube Scan (push) Successful in 28s
2026-02-18 14:24:05 +00:00
60f0f542d4 Update .gitea/workflows/sonar.yml
Some checks failed
SonarQube Analysis / SonarQube Scan (push) Failing after 20s
2026-02-18 14:17:47 +00:00
cc860b15ee Update .gitea/workflows/sonar.yml
Some checks failed
SonarQube Analysis / SonarQube Scan (push) Failing after 22s
2026-02-18 14:13:30 +00:00
645c5f7bff Add .gitea/workflows/sonar.yml
Some checks failed
SonarQube Analysis / sonarqube (push) Failing after 22s
2026-02-18 13:47:59 +00:00

View File

@@ -0,0 +1,45 @@
name: SonarQube Analysis
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
types:
- opened
- synchronize
- reopened
jobs:
sonarqube:
name: SonarQube Scan
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run SonarScanner (Docker v12)
run: |
# Safely get repository name from current directory
PROJECT_KEY=$(basename "$PWD")
echo "Using project key: $PROJECT_KEY"
docker run --rm \
-v "$PWD:/usr/src" \
-w /usr/src \
-e SONAR_HOST_URL=${{ secrets.SONARQUBE_HOST }} \
-e SONAR_TOKEN=${{ secrets.SONARQUBE_TOKEN }} \
sonarsource/sonar-scanner-cli:12 \
-Dsonar.projectKey=$PROJECT_KEY \
-Dsonar.projectName=$PROJECT_KEY \
-Dsonar.sources=. \
-Dsonar.exclusions=node_modules/**,dist/**,coverage/** \
-Dsonar.qualitygate.wait=true