talira

GitHub's semantic code analysis engine for finding vulnerabilities

commercial softwareGitHub CodeQL Terms and Conditionsself-hostablefree

CodeQL is GitHub's semantic code analysis engine: it builds a database from a codebase and lets you query the code as though it were data, writing queries in its QL language that find every variant of a vulnerability through data flow and taint tracking. It covers C and C++, C#, Go, Java and Kotlin, JavaScript and TypeScript, Python, Ruby, Rust, Swift and GitHub Actions workflows. The CodeQL CLI and the VS Code extension run queries locally, and the standard queries and libraries are open source under MIT in the github/codeql repository. On GitHub Actions it powers GitHub's code scanning. The CLI is free for academic research and for analysing open source codebases; using it on private code is part of GitHub Code Security, a paid add-on.

Problems it solves

  • find security vulnerabilities in my code with static analysis
  • scan my GitHub repository for SQL injection and XSS on every pull request
  • write a custom query to find every variant of a bug in a large codebase
  • run security code scanning in GitHub Actions

Features

  • code databases queried with the QL language
  • data flow and taint tracking
  • C/C++, C#, Go, Java/Kotlin, JavaScript/TypeScript, Python, Ruby, Rust, Swift, GitHub Actions
  • open source MIT standard queries and libraries
  • CodeQL CLI and VS Code extension
  • GitHub code scanning integration

Ways to run it

CodeQL CLI (research and open source)

You run it, GitHub CodeQL Terms and Conditions

free1

Only in this edition

  • academic research
  • analysing open source codebases

Not included

  • use on private, closed-source code

Self-hosting docs

GitHub Code Security

Hosted by GitHub

$30 per active committer/month2

Only in this edition

  • CodeQL code scanning on private repositories

Pricing

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what CodeQL does.

  1. Snyk Find, fix and prevent vulnerabilities in code, open source dependencies, container images and cloud configurations
  2. SonarQube Code confidence for the agentic software factory
  3. Brakeman A static analysis security vulnerability scanner for Ruby on Rails applications
  4. Semgrep Code security: SAST, supply chain and secrets scanning with rules that look like code
  5. Bandit A security linter for Python code
  6. Bearer CLI Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks

Compare CodeQL with the top 3