CodeQL query packs

You can choose from different built-in CodeQL query suites to use in your CodeQL code scanning setup.

About CodeQL packs

CodeQL packs are used to create, share, depend on, and run CodeQL queries and libraries. You can customize your CodeQL analysis by downloading packs created by others and running them on your codebase.

Each CodeQL pack requires a qlpack.yml file in its root directory that specifies:

For more information about qlpack.yml properties, see Customizing analysis with CodeQL packs.

Additionally, a CodeQL pack can contain:

The CodeQL CLI bundle includes queries that are maintained by GitHub experts, security researchers, and community contributors. If you want to run queries developed by other organizations, CodeQL query packs provide an efficient and reliable way to download and run queries, while model packs (public preview) can be used to expand code scanning analysis to recognize libraries and frameworks that are not supported by default.

Types of CodeQL packs

There are three types of CodeQL packs: query packs, library packs, and model packs.

Where to find query packs

The standard CodeQL packs for all supported languages are published in the Container registry. If you installed the CodeQL CLI in the standard way, using the CodeQL CLI bundle, the core query packs are already downloaded and available to you. They are:

For more information about compatibility between published query packs and different CodeQL releases, see CodeQL query packs reference.

You can also use the CodeQL CLI to create your own CodeQL packs, add dependencies to packs, and install or update dependencies.

Publishing and sharing CodeQL packs

You can share custom queries with the broader CodeQL community by:

For more information about publishing and downloading CodeQL packs, see Publishing and using CodeQL packs.

For information about contributing to CodeQL, see Contributing to CodeQL.