Skip to content

LS-CI-003: SonarQube Token

Severity HIGH
Blast radius Code analysis data exposure
Rotate at https://docs.sonarsource.com/sonarqube/latest/user-guide/user-account/generating-and-using-tokens/

If this leaks

Allows reading analysis results and source snippets, and with admin scope, changing quality gates.

What to do

  1. Rotate or revoke the credential at https://docs.sonarsource.com/sonarqube/latest/user-guide/user-account/generating-and-using-tokens/.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

\bsq[pau]_[a-f0-9]{40}\b

Suppress

On one line: # leakscan:ignore LS-CI-003. For the whole project:

disable_rules: [LS-CI-003]