How GitHub uses CodeQL to secure GitHub
Feb 12, 2025Brandon Stewart18 min read
Opens github.blogWhat the post covers
This post details how GitHub Product Security Engineering uses CodeQL for security analysis.
- It explains the strategy of publishing custom CodeQL query packs to GitHub Container Registry (GCR) for improved deployment and iteration speed compared to embedding queries directly in repositories.
- The post also covers dependency management for CodeQL query packs, specifically pinning versions of libraries like `ruby-all` to ensure stability, and outlines the release flow for new queries.
- Finally, it discusses strategies for granting access to these private query packs across multiple repositories within an enterprise.
More from the AI-Assisted Code Development and Review trail
How we make AI coding more cost efficient without sacrificing task quality
Better tools made Copilot code review worse. Here's how we actually improved it.
Agent-driven development in Copilot Applied Science
Continuous AI for accessibility: How GitHub transforms feedback into inclusion
Finding leaked passwords with AI: How we built Copilot secret scanning