Collection of community-driven CodeQL query, library and extension packs
See the codeCollection of community-driven CodeQL query, library and extension packs.
[!NOTE] These packs are published with precompiled queries, so a pack built against an older CodeQL CLI generally keeps working with a newer one too — see CodeQL pack compatibility for how that works. If you're curious which CodeQL CLI version we currently build and test against, see Supported CodeQL versions in CONTRIBUTING.md.
Using a githubsecuritylab/codeql-LANG-queries query pack will reference the default suite for that pack (e.g. python.qls for python). However, you may use a different suite such as python-audit.qls by referencing the query pack with the following syntax: githubsecuritylab/codeql-python-queries:suites/python-audit.qls. The examples below work for both syntaxes.
[!IMPORTANT] For language aliases in
strategy.matrix.language, usecppinstead ofc-cpp,javainstead ofjava-kotlinandjavascriptinstead ofjavascript-typescript.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
packs: githubsecuritylab/codeql-${{ matrix.language }}-queries
This repository has a number of provided configuration files you can use or copy from the community packs.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: GitHubSecurityLab/CodeQL-Community-Packs/configs/default.yml@main
$ cat codeql-config.yml | grep -A 1 'packs:'
packs:
- githubsecuritylab/codeql-python-queries
codeql database analyze db/ --download githubsecuritylab/codeql-python-queries --format=sarif-latest --output=results.sarif
This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.
Please create GitHub issues for any feature requests, bugs, or documentation problems.
We welcome contributions — see CONTRIBUTING.md for how to submit a new query or improve an existing one, and for the CodeQL CLI/library versions we currently build and test against.
Java
67.6%
CodeQL
27.1%
C#
3.1%
Python
1.7%
Collection of community-driven CodeQL query, library and extension packs
See the codeCollection of community-driven CodeQL query, library and extension packs.
[!NOTE] These packs are published with precompiled queries, so a pack built against an older CodeQL CLI generally keeps working with a newer one too — see CodeQL pack compatibility for how that works. If you're curious which CodeQL CLI version we currently build and test against, see Supported CodeQL versions in CONTRIBUTING.md.
Using a githubsecuritylab/codeql-LANG-queries query pack will reference the default suite for that pack (e.g. python.qls for python). However, you may use a different suite such as python-audit.qls by referencing the query pack with the following syntax: githubsecuritylab/codeql-python-queries:suites/python-audit.qls. The examples below work for both syntaxes.
[!IMPORTANT] For language aliases in
strategy.matrix.language, usecppinstead ofc-cpp,javainstead ofjava-kotlinandjavascriptinstead ofjavascript-typescript.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
packs: githubsecuritylab/codeql-${{ matrix.language }}-queries
This repository has a number of provided configuration files you can use or copy from the community packs.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: GitHubSecurityLab/CodeQL-Community-Packs/configs/default.yml@main
$ cat codeql-config.yml | grep -A 1 'packs:'
packs:
- githubsecuritylab/codeql-python-queries
codeql database analyze db/ --download githubsecuritylab/codeql-python-queries --format=sarif-latest --output=results.sarif
This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.
Please create GitHub issues for any feature requests, bugs, or documentation problems.
We welcome contributions — see CONTRIBUTING.md for how to submit a new query or improve an existing one, and for the CodeQL CLI/library versions we currently build and test against.
Java
67.6%
CodeQL
27.1%
C#
3.1%
Python
1.7%