Skip to content

HikaruEgashira/CodeQL-Community-Packs

 
 

Repository files navigation

CodeQL Community Packs

GitHub GitHub Actions GitHub Issues GitHub Stars Licence

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

Getting started

Default query suites

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

Using a community pack from the CodeQL Action

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: github/codeql-action/init@v2
  with:
    languages: ${{ matrix.language }}
    packs: hikae/codeql-${{ matrix.language }}-queries

Using a community pack from the CLI configuration file

$ cat codeql-config.yml | grep -A 1 'packs:'
packs:
  - hikae/codeql-python-queries

Using a community pack from the CodeQL CLI

codeql database analyze db/ --download hikae/codeql-python-queries --format=sarif-latest --output=results.sarif

About

Collection of community-driven CodeQL query, library and extension packs (for me)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CodeQL 47.2%
  • Ruby 30.9%
  • HTML 8.2%
  • Python 6.8%
  • JavaScript 3.9%
  • SCSS 1.8%
  • Other 1.2%