Skip to content

Commit f842c19

Browse files
authored
re-enable local CodeQL queries (#798)
These local queries were developed some years ago but were disabled when the LGTM service (predecessor to CodeQL) was deprecated. Reference the directory where the local queries are located with the `queries` parameter in the `codeql/init` step. Add a QL pack configuration so that CodeQL understand this directory contains the queries.
1 parent d9763f0 commit f842c19

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
uses: github/codeql-action/init@v2
5858
with:
5959
languages: ${{ matrix.language }}
60+
queries: +./.lgtm/cpp-queries
6061
# If you wish to specify custom queries, you can do so here or in a config file.
6162
# By default, queries listed here will override any specified in a config file.
6263
# Prefix the list here with "+" to use these queries and those in the config file.

.lgtm/cpp-queries/qlpack.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: cutechess/cpp-queries
2+
version: 1.0.0
3+
dependencies:
4+
codeql/cpp-all: "*"
5+
extractor: cpp

0 commit comments

Comments
 (0)