CodeQL vs GitGuardian
Feature checklists rarely decide anything. What decides it is the pricing metric, who has to write the tests, and which limitation you can live with.
Entry price
From $30 per active committer/month (GitHub Code Security)
Free tierFree tier available
Free tierWhat drives the bill
The metric that actually scales your invoice.
Free on public repos. For private repositories GitHub split Advanced Security into two products in April 2025: Code Security at $30 and Secret Protection at $19 per active committer/month, both now available on Team plans as well as Enterprise. CodeQL sits in Code Security. Billing counts active committers, not seats, which can surprise teams with many occasional contributors.
Free tier covers small teams entirely; business pricing is quote-based per developer.
Free tier
Free for public repositories on GitHub.
Free for individuals and teams up to 25 developers.
Open source
MIT (queries)
Self-hostable
No-code authoring
Languages
Platforms
Fits teams
Adoption
Widely used
GitHub (Microsoft) · since 2019
Widely used
GitGuardian · since 2017
Strengths
- Interprocedural dataflow analysis finds real vulnerabilities that regex- and pattern-based tools cannot see.
- Free on public repositories, with results in the GitHub security tab.
- Custom queries let you encode organisation-specific security rules.
- Validity checking distinguishes a live credential from a revoked one, which transforms triage priority.
- Scans full commit history, where most leaked secrets actually live.
- Free for teams up to 25 developers.
Limitations
- Writing custom CodeQL queries is a specialist skill with a steep learning curve.
- Analysis is slow — minutes to tens of minutes, so it fits nightly better than per-commit.
- Private-repo licensing through Advanced Security is expensive at scale.
- Secrets scanning only — not a general security platform.
- Historical scans on old repositories produce a large initial backlog.
- Requires repository access, which needs a security review of its own.
Best for
GitHub-hosted projects wanting deep static security analysis, free if the repo is public.
Any organisation with more than a handful of repositories and no secrets scanning today.
Pricing last reviewed August 2026 and is indicative only — confirm on each vendor’s own page.