SecurityLab/CodeQL-Community-Packs

Repository files navigation

GitHubGitHub ActionsGitHub IssuesGitHub StarsLicence

Collection of community-driven CodeQL query, library and extension packs.

Using a securitylab/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: securitylab/codeql-python-queries:suites/python-audit.qls. The examples below work for both syntaxes.

Important

For language aliases in strategy.matrix.language, use cpp instead of c-cpp, java instead of java-kotlin and javascript instead of javascript-typescript.

- name: Initialize CodeQL
  uses: /codeql-action/init@v3
  with:
    languages: ${{ matrix.language }}
    packs: securitylab/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: /codeql-action/init@v3
  with:
    languages: ${{ matrix.language }}
    config-file: SecurityLab/CodeQL-Community-Packs/configs/default.yml@main
$ cat codeql-config.yml | grep -A 1 'packs:'
packs:
  - securitylab/codeql-python-queries
codeql database analyze db/ --download securitylab/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 issues for any feature requests, bugs, or documentation problems.

About

Collection of community-driven CodeQL query, library and extension packs

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 13