Skip to content

advanced-security/awesome-codeql

Awesome Codeql Awesome

A curated list of CodeQL resources.

Contents


Getting Started

Resources for learning CodeQL, from beginner guides to official documentation.

CodeQL Getting Started and Guides (along side the official docs)

  • CodeQL Learning Catalog - The CodeQL Learning Catalog is a resource dedicated providing detailed CodeQL learning resources. The Catalog contains workshops, recordings, and learning paths for improving your knowledge and skill in using CodeQL.
  • GitHub Security Lab - From trying out CodeQL to secure your own code to collecting bug bounties by securing others', here are a few ways we can keep the world's software safe, together.
  • testing-handbook - The Trail of Bits Testing Handbook is a resource that guides developers and security professionals in configuring, optimizing, and automating many of the static and dynamic analysis tools used at Trail of Bits.
  • ReadMe Project - CodeQL Query Writing - A beginner’s guide to running and managing custom CodeQL queries

Documentation

Blogs

YouTube learning


Tooling & Environment

Everything you need to install, run, and view CodeQL results locally or in containers.

CodeQL Installers

CodeQL CLI Tooling

CodeQL Containers

CodeQL SARIF

CodeQL AI & LLM Tooling

  • GitHubSecurityLab/seclab-taskflow-agent - The GitHub Security Lab Taskflow Agent is an MCP enabled multi-Agent framework. See the CVE-2023-2283 taskflow for an example of how to have an Agent review C code using a CodeQL database (demo video).
    • GitHubSecurityLab/seclab-taskflows - Example taskflows to use with the GitHub Security Lab Taskflow Agent Framework. Intended to be an easy-to-copy template for anybody who would like to publish their own suite of taskflows.
  • github/codeql-development-mcp-server - GitHub CodeQL Development MCP Server supporting LLM requests for CodeQL development tools and resources.
  • advanced-security/codeql-development-template - Copilot-native repository template for CodeQL query development. Lowering the barrier to entry for CodeQL development through natural language and GitHub Copilot. A GitHub repository template for building custom CodeQL queries with AI assistance. This template provides a structured environment with prompts, instructions, and workflows designed to guide GitHub Copilot Coding Agent through the complete CodeQL development lifecycle.
  • JordyZomer/codeql-mcp - This project runs a Model Context Protocol (MCP) server that wraps the CodeQL query server. It enables tools like Cursor or AI agents to interact with CodeQL through structured commands and doc search.

GitHub Actions & CI/CD

Tools, actions, and examples for integrating CodeQL into your automation pipelines.

  • advanced-security/sample-pipeline-files - This repository contains pipeline files for various CI/CD systems (AWS CodeBuild, Azure Devops, CircleCI, DroneCI, Jenkins, Tekton, Travis), illustrating how to integrate the CodeQL CLI Bundle for Automated Code Scanning

CodeQL GitHub Actions Helpers

CodeQL Monorepo Actions Samples

CodeQL Enforcement

  • advanced-security-enforcer - A GitHub action for organizations that enables advanced security code scanning on all new repos
  • codeql-selective-analysis - Make CodeQL a required status check for Pull Requests, but to skip the analysis in the case that only a certain subset of files are modified

Customization & Query Development

Resources for extending CodeQL, creating packs, and using custom queries.

CodeQL Packs

CodeQL Tooling (Bundles + Packs)

CodeQL Libraries & Utilities

Custom Modeling

CodeQL Queries/Bundles

CodeQL Query Suites

CodeQL Extractors

Troubleshooting

Contribute

Contributions welcome! Read the contribution guidelines first.

Why

What is an awesome list?

About

A curated list of awesome CodeQL resources.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 6