Skip to content
forked from github/codeql

CodeQL: the libraries and queries that power security researchers around the world, as well as code scanning in GitHub Advanced Security

License

Notifications You must be signed in to change notification settings

nodoubtz/codeql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codeql

Welcome to the codeql repository!

Overview

This repository contains CodeQL queries, libraries, and scripts for analyzing source code and identifying security vulnerabilities, bugs, and code quality issues. CodeQL allows you to write queries that find patterns and problems in source code, empowering secure software development and automated code review.

Features

  • Custom CodeQL Queries: Tailored queries for finding security vulnerabilities and code smells.
  • Reusable Libraries: CodeQL libraries to help you write your own queries.
  • Automation Scripts: Scripts and workflows for integrating CodeQL analysis into CI/CD pipelines.

Getting Started

Prerequisites

Clone the Repository

git clone https://github.com/nodoubtz/codeql.git
cd codeql

Running a Query

  1. Set up your CodeQL database for the target codebase (see CodeQL docs).

  2. Run a query from the queries directory:

    codeql query run queries/my-query.ql --database=path/to/database
  3. Review the results and iterate on your queries as needed.

Repository Structure

.
├── queries/
│   └── [your custom CodeQL queries]
├── libraries/
│   └── [CodeQL libraries and modules]
└── scripts/
    └── [helper and automation scripts]
  • queries/: Custom CodeQL queries for various languages and vulnerabilities.
  • libraries/: CodeQL QL libraries for reuse in queries.
  • scripts/: Automation scripts to assist with analysis or CI/CD integration.

Contributing

Contributions are welcome! Please:

  1. Fork this repo and create a new branch.
  2. Add your queries, libraries, or scripts.
  3. Open a pull request with a clear description.

See CONTRIBUTING.md if available.

License

This project is licensed under the MIT License.

References


Note: Please ensure you do not include any sensitive or vulnerable code in your queries or examples.

About

CodeQL: the libraries and queries that power security researchers around the world, as well as code scanning in GitHub Advanced Security

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CodeQL 28.8%
  • Kotlin 25.1%
  • C# 24.1%
  • Java 6.6%
  • Python 4.1%
  • C 2.9%
  • Other 8.4%