Comparison

Semgrep vs SonarQube

On the evidence we track, SonarQube leads this comparison with a composite score of 71/100. Scores are only directly comparable because these tools share a category; the full breakdown and every source is below.

Machine formatsMarkdownJSONGraphQLMarkdown is open. JSON and GraphQL need a free key.
Semgrep64
★SonarQube71
Score
vioscaleAI score
Semgrep64 / 100medium · 71%
SonarQube71 / 100high · 76%
Pricing
Free tier
Semgrep✓
SonarQube✓
Model
Semgrepfreemium
SonarQubefreemium
Price level
Semgrepmid
SonarQubemid
Starting price
Semgrep$30
SonarQube$34
Transparent
Semgrep✓
SonarQube✓
Integrations
Count
Semgrep11
SonarQube13
Reliability
Sla pct
Semgrep–
SonarQube99.9
Status page
Semgrep✓
SonarQube✓
Adoption
Dependent repos
Semgrep375
SonarQube497
Github stars
Semgrep18,010
SonarQube11,222
Package downloads weekly
Semgrep5,048,057
SonarQube–
Activity
Commits last 30d
Semgrep82
SonarQube100
Release
Cadence days
Semgrep6
SonarQube28
History
Semgrep20 items
SonarQube20 items
License
Spdx
SemgrepLGPL-2.1
SonarQubeLGPL-3.0
Language
Primary
SemgrepC
SonarQubeJava
Content
Faq
Semgrep8 items
SonarQube8 items

Capabilities

Feature-by-feature on the axes that matter for devsecops tools. “-” means undocumented, not absent.

Scan types
SAST (static analysis)
Semgrep✓
SonarQube✓
DAST (dynamic analysis)
Semgrep✗
SonarQube✗
SCA / dependency scanning
Semgrep✓
SonarQube✓
Secret scanning
Semgrep✓
SonarQube✓
Container / image scanning
Semgrep✗
SonarQube✓
IaC misconfiguration scanning
Semgrep✓
SonarQube✓
Governance
OSS licence compliance
Semgrep✓
SonarQube✓
SBOM generation (SPDX/CycloneDX)
Semgrep✓
SonarQube✓
Remediation
Automated fix / upgrade PRs
Semgrep✓
SonarQube✓
Prioritisation
Reachability / exploitability prioritisation
Semgrep✓
SonarQube✓
Deployment
Hosting
SemgrepCloud + self-hosted
SonarQubeCloud + self-hosted
Integration
First-class CI / pipeline integration
Semgrep✓
SonarQube✓
In-editor / IDE scanning
Semgrep✓
SonarQube✓
Licensing
OSS engine available
Semgrep✓
SonarQube✓

What each one is

The product in its own terms, so the numbers below have context.

Semgrep

A comprehensive application security platform combining SAST, SCA, and secrets detection with AI-assisted remediation guidance. Integrates into developer workflows and CI/CD pipelines to catch vulnerabilities before code is deployed.

Independently observed

SonarQube

Leader

A code quality and security analysis platform that uses static analysis techniques to automatically detect and help fix bugs, vulnerabilities, code smells, and compliance issues across multiple programming languages, with support for both human-written and AI-generated code.

Independently observed

Pricing

List pricing as published by each vendor, with the date we read it. Always verify at the source before you buy.

Semgrep

from $30/contributor/moSubscriptionFree tier

Free tier with up to 10 repositories and 10 contributors. Teams plans from $15-30/month per contributor (depending on module). Enterprise custom pricing.

  • Free EditionFree
    • Cross-file analysis with Pro rules
    • AI-powered detection, triage, and remediation
    • 60 AI credits included
    • Fast CI/CD deploy via Semgrep infrastructure
    • Scan up to 10 repositories
    • +4 more
  • Teams$30/month per contributor (Code and Supply Chain), $15/month per contributor (Secrets)
    • One-click CI/CD deploy using Semgrep infrastructure
    • Single sign-on (SSO)
    • Award-winning support
    • AI-powered detection and auto-triage
    • Policy engine
    • +2 more
  • EnterpriseContact sales
    • Everything in Teams
    • Support for on-prem source code management
    • Support for custom CI/CD integrations
    • 50 AI credits per developer per month
    • Optional deployment in dedicated infrastructure
    • +5 more
as of verify ↗

SonarQube

Leader
from $34/moSubscriptionFree tier14-day trial

Free tier up to 50k LOC. Team plan from $34/month. Enterprise pricing available upon request.

  • FreeFree
    • 45+ languages
    • basic code analysis
  • TeamFrom $34/month for up to 100k LOC
    • 45+ languages
    • SSO and SCIM
    • portfolios
    • OWASP and MISRA reporting
    • advanced SAST and SCA
    • +5 more
  • EnterpriseContact sales
as of verify ↗

Platform & deployment

Where each product runs and how it can be hosted. A dash means undocumented, not unsupported.

Platforms
Web
Semgrep✓
SonarQube✓
CLI
Semgrep✓
SonarQube✓
Deployment
Cloud / SaaS
Semgrep✓
SonarQube✓
Self-hosted
Semgrep✓
SonarQube✓
On-premise
Semgrep✓
SonarQube✗
Hybrid
Semgrep✓
SonarQube✗

Integrations

What each product connects to. Counts come from the vendor's own integration directory where one exists.

In common (9)
  • GitHub
  • GitLab
  • Bitbucket
  • Jenkins
  • CircleCI
  • Slack
  • Jira
  • Cursor
  • Azure DevOps

Semgrep

28 total - 19 not shared
  • Azure
  • Buildkite
  • HackerOne
  • Email
  • Webhooks
  • VS Code
  • IntelliJ
  • Wiz
  • Palo Alto Networks Cortex
  • REST API
  • Replit
  • Codacy
  • OpenID Connect
  • SAML
  • GitHub OAuth
  • GitLab OAuth
  • Azure AD
  • Jetbrains
  • OAuth2
Independently observed

SonarQube

Leader
36 total - 27 not shared
  • CodeCatalyst
  • TravisCI
  • GitHub Actions
  • Codemagic
  • Linear
  • GitHub Advanced Security
  • Backstage
  • Compass
  • Cortex
  • Harness
  • Port
  • Bitbucket Pipelines
  • GitLab CI
  • Bamboo
  • Claude Code
  • Copilot
  • Windsurf
  • Gemini CLI
  • Azure Pipelines
  • Bitbucket Cloud
  • Terraform
  • CloudFormation
  • Kubernetes
  • Docker
  • +3 more
Independently observed
Still deciding?

Semgrep or SonarQube: which one depends on you

A composite score cannot know your constraints. Describe them and both get re-weighted against what you actually need, with the evidence behind every position.

Free to run, no account needed to start. How the evaluation works

Comparison generated from independently-sourced facts. Every value links to its source and retrieval date. See the method.