ci(sonarqube): non-blocking SonarQube analysis on push to main #83
Reference in New Issue
Block a user
No description provided.
Delete Branch "ci/sonarqube-analysis"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Integrates the self-hosted SonarQube server (
http://192.168.0.56:9000) with this repo via a Gitea Actions workflow. Analysis runs on push tomain(post-merge) and on manualworkflow_dispatch— it never gates a PR, so it's non-blocking by design. Complementspr-checks.yml(gates PRs) andbuild-images.yml(ships images); this one only feeds the SonarQube dashboard.Files
.gitea/workflows/sonarqube.yml— runssonarsource/sonarqube-scan-action@v4on the existing self-hostedubuntu-latestrunner. Full-history checkout (fetch-depth: 0) for accurate new-code/blame attribution. Does not wait on the Quality Gate, so a failing gate never fails the job.sonar-project.properties— project keyrunic-gateway-website(matches the project already created in SonarQube). Sources =server/src,client/src,bot/src; tests =server/test; excludesnode_modules,client/dist, generated Swagger, logs, uploads.Required one-time setup (Gitea UI → Repo → Settings → Actions)
SONAR_TOKEN— a SonarQube analysis token (SonarQube → My Account → Security).SONAR_HOST_URL—http://192.168.0.56:9000(kept as a variable so the internal address isn't committed).The runner must be able to reach
SONAR_HOST_URLon the LAN.Notes
docs/change is required.AI-assisted: authored with Claude Code.
🤖 Generated with Claude Code