Skip to content

Commit bb219d2

Browse files
committed
enable local CodeQL queries
These local queries were developed some years ago but were not enabled by default. Reference the directory where the local queries are located with the `queries` parameter in the `codeql/init` step.
1 parent d9763f0 commit bb219d2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/codeql/codeql-config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
queries:
2+
- uses: ./.lgtm/cpp-queries/commaexpr-in-ifstmt.ql

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ jobs:
5656
- name: Initialize CodeQL
5757
uses: github/codeql-action/init@v2
5858
with:
59+
debug: true
5960
languages: ${{ matrix.language }}
61+
config-file: ./.github/codeql/codeql-config.yml
6062
# If you wish to specify custom queries, you can do so here or in a config file.
6163
# By default, queries listed here will override any specified in a config file.
6264
# Prefix the list here with "+" to use these queries and those in the config file.

0 commit comments

Comments
 (0)