Source
Dependencies (SCA), licences & secrets — found from sitemap — SonarQube
Checked for SonarQube on 6 Nov 2026
- Page
- https://docs.sonarsource.com/sonarqube-cli/analysis/secrets-detection
- Checked
- 6 Nov 2026, 05:17 UTC
- How we may use it
- Public page, crawling permitted
Technical details
- type
- page
- http status
- 200
- content hash
- sha256:9ceb455d0a0c5975a53094833a8fb5615ddae9843ec62e3a25c684c357c5ff75
- permission
- robots_ok
- screenshot
- Screenshot on file (internal exhibit, not published)
Cited by
Facts read from this source
-
Secrets detection overview Report an error
“The SonarQube CLI detects hardcoded credentials before they reach a repository, an AI tool, or production, running on demand, in Git, or in AI sessions.”
-
Secrets offline mode Report an error
“Secrets detection works with SonarQube Cloud, SonarQube Server, and with no server connection at all.”
-
Secrets local processing Report an error
“Secrets detection runs locally on your machine. No code leaves your machine for the scan itself.”
-
Secrets scan on demand command Report an error
“Ad-hoc: sonar analyze secrets scans files or stdin from your terminal or a script.”
-
Secrets git hook Report an error
“Git layer: sonar integrate git installs a hook that blocks commits or pushes containing secrets.”
-
Secrets AI agent hooks Report an error
“sonar integrate claude installs a UserPromptSubmit hook (scans the prompt you send to Claude) and a PreToolUse hook (runs before file reads/writes).”
-
Secrets exit codes Report an error
“The command exits with code 51 when it finds secrets and 0 when it finds none.”
-
Secrets scan warnings nonblocking Report an error
“Scan warning: lines. They do not change the exit code—a clean scan still exits 0, and a detection still exits 51.”
-
Secrets git hook modes Report an error
“Pre-push hooks and global (machine-wide) installation are also supported.”
-
Secrets fail closed Report an error
“Secrets hooks fail closed when they cannot run a scan.”
-
Secrets scan error fail open Report an error
“Scan errors during an otherwise healthy run (for example, a network failure mid-scan) still fail open on Claude Code, GitHub Copilot CLI, Cursor, Codex, Antigravity, and Devin hooks. OpenCode and Pi block instead.”
-
Secrets allowlist Report an error
“sonar allowlist secrets keeps a local list of values you have reviewed as safe, such as test fixtures and sample tokens.”
-
Secrets allowlist interactive only Report an error
“sonar allowlist secrets add requires a human at an interactive terminal. It cannot be run by an agent or a script, and there is no flag to skip that check.”
-
Secrets custom rules server Report an error
“When the SonarQube CLI is authenticated against a SonarQube Server instance, it automatically downloads and executes custom secret rules (instances of the rule template S6784) defined on that server.”
-
Secrets custom rules cloud unavailable Report an error
“Custom secret rules are not yet available on SonarQube Cloud. Support is planned.”
-
Secrets engine Report an error
“Secrets detection uses the same engine that powers SonarQube's server-side secret detection rules.”
-
Secrets providers detected Report an error
“It looks for patterns issued by major providers (AWS, GCP, GitHub, Stripe, SonarQube tokens, and many more) as well as generic high-entropy strings used in credential-shaped contexts.”
-
Secrets skipped extensions Report an error
“For example, .md, .mdx, .html, .adoc, .example, .sample, .template, .dist are skipped by every rule.”
-
Secrets filters Report an error
“The value is a simple word (e.g. password, mypassword, 123456), rejected by the fake-password filter.”
-
Secrets filter flags Report an error
“Pass --disable-entropy-filter to surface it as a low-confidence finding.”
-
Secrets test file flag Report an error
“Pass --disable-test-file-detection to surface findings in those files as low-confidence.”
-
AI agents supported Report an error
“Claude Code: Claude Code GitHub Copilot CLI: GitHub Copilot CLI Cursor: Cursor OpenCode: OpenCode Devin: Devin Pi: Pi”
Scores citing this record
- The Application Security Engineer Dependencies (SCA), licences & secrets
- The Application Security Engineer Developer workflow, quality gates & fixes
- The Engineering Manager Dependencies (SCA), licences & secrets
- The Engineering Manager Developer workflow, quality gates & fixes
- The Lead Developer Dependencies (SCA), licences & secrets
- The Lead Developer Developer workflow, quality gates & fixes
- The Platform Engineer Dependencies (SCA), licences & secrets
- The Platform Engineer Developer workflow, quality gates & fixes
- The Product Security Officer Dependencies (SCA), licences & secrets
- The Skeptic Dependencies (SCA), licences & secrets
- The Skeptic Developer workflow, quality gates & fixes