Skip to content

SonarQube Cloud repository checks

The ADR Guard repository includes opt-in SonarQube Cloud quality automation, kept separate from the released CLI, MCP and VS Code products. It remains disabled until the GitHub Variables and secret are configured by a maintainer.

Set SONAR_PROJECT_KEY, SONAR_ORGANIZATION and SONAR_CI_ENABLED=true as repository Variables, plus SONAR_TOKEN as a secret. The main analysis workflow measures production .NET coverage, keeps repository automation under static analysis without applying the coverage gate to it, scans trusted PRs and main, and reports the current analysis’s Quality Gate conditions. Missing or invalid evidence refreshes the PR comment as UNKNOWN rather than preserving a stale result. The separate weekly/manual workflow can synchronize HIGH/BLOCKER findings to bot-managed GitHub Issues with automatic closure when a complete, validated scan no longer returns the finding as OPEN/HIGH/BLOCKER. Issues are reopened if the finding qualifies again. Closures are limited to bot-managed issues with a matching Sonar project marker; legacy issues without provenance are preserved until revalidated.

Full configuration, permissions, validation and troubleshooting.

No public badges or quality metrics are asserted until the Sonar project is configured and its results independently verified.