Skip to content

Commit b294282

Browse files
committed
Add codeql configuration
Signed-off-by: Ian <[email protected]>
1 parent 53f6ba0 commit b294282

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/codeql/codeql-config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Exclude dependencies from CodeQL analysis
2+
paths:
3+
exclude:
4+
- "**/thirdparty/**"
5+
- "**/out/**"
6+
- "**/build/**"
7+
- "**/test/**"
8+
- "**/example/**"
9+
- "**/benchmark/**"
10+
- "**/tools/**"

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
21
name: "CodeQL"
32

43
on:
54
push:
6-
branches: ["main", "dev"]
5+
branches: [ "main", "dev" ]
76
pull_request:
87
# The branches below must be a subset of the branches above
9-
branches: ["main", "dev"]
8+
branches: [ "main", "dev" ]
109
schedule:
1110
- cron: "0 0 * * 1"
1211

@@ -25,7 +24,7 @@ jobs:
2524
strategy:
2625
fail-fast: false
2726
matrix:
28-
language: ["cpp", "python"]
27+
language: [ "cpp", "python" ]
2928
# CodeQL supports [ $supported-codeql-languages ]
3029
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3130

@@ -43,6 +42,7 @@ jobs:
4342
uses: github/codeql-action/init@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
4443
with:
4544
languages: ${{ matrix.language }}
45+
config-file: .github/codeql/codeql-config.yml
4646
# If you wish to specify custom queries, you can do so here or in a config file.
4747
# By default, queries listed here will override any specified in a config file.
4848
# Prefix the list here with "+" to use these queries and those in the config file.

0 commit comments

Comments
 (0)