]> git.ipfire.org Git - thirdparty/systemd.git/blob - .github/codeql-custom.qls
test: add test case for sd_journal_{get,seek,test}_cursor()
[thirdparty/systemd.git] / .github / codeql-custom.qls
1 ---
2 # vi: ts=2 sw=2 et syntax=yaml:
3 # SPDX-License-Identifier: LGPL-2.1-or-later
4 #
5 # Note: it is not recommended to directly reference the respective queries from
6 # the github/codeql repository, so we have to "dance" around it using
7 # a custom QL suite
8 # See:
9 # - https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#running-additional-queries
10 # - https://github.com/github/codeql-action/issues/430#issuecomment-806092120
11 # - https://codeql.github.com/docs/codeql-cli/creating-codeql-query-suites/
12
13 # Note: the codeql/<lang>-queries pack name can be found in the CodeQL repo[0]
14 # in <lang>/ql/src/qlpack.yml. The respective codeql-suites are then
15 # under <lang>/ql/src/codeql-suites/.
16 #
17 # [0] https://github.com/github/codeql
18 - import: codeql-suites/cpp-lgtm.qls
19 from: codeql/cpp-queries
20 - import: codeql-suites/python-lgtm.qls
21 from: codeql/python-queries
22 - include:
23 id:
24 - cpp/bad-strncpy-size
25 - cpp/declaration-hides-variable
26 - cpp/include-non-header
27 - cpp/inconsistent-null-check
28 - cpp/mistyped-function-arguments
29 - cpp/nested-loops-with-same-variable
30 - cpp/sizeof-side-effect
31 - cpp/suspicious-pointer-scaling
32 - cpp/suspicious-pointer-scaling-void
33 - cpp/suspicious-sizeof
34 - cpp/unsafe-strcat
35 - cpp/unsafe-strncat
36 - cpp/unsigned-difference-expression-compared-zero
37 - cpp/unused-local-variable
38 tags:
39 - "security"
40 - "correctness"
41 severity: "error"
42 - exclude:
43 id:
44 - cpp/fixme-comment