Skip to content

Commit f0f94f2

Browse files
authored
fix: add CodeQL configuration to properly exclude template directories (crewAIInc#3641)
1 parent bf9e042 commit f0f94f2

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/codeql/codeql-config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "CodeQL Config"
2+
3+
paths-ignore:
4+
# Ignore template files - these are boilerplate code that shouldn't be analyzed
5+
- "src/crewai/cli/templates/**"
6+
# Ignore test cassettes - these are test fixtures/recordings
7+
- "tests/cassettes/**"
8+
# Ignore cache and build artifacts
9+
- ".cache/**"
10+
# Ignore documentation build artifacts
11+
- "docs/.cache/**"
12+
13+
paths:
14+
# Include all Python source code
15+
- "src/**"
16+
# Include tests (but exclude cassettes)
17+
- "tests/**"
18+
19+
# Configure specific queries or packs if needed
20+
# queries:
21+
# - uses: security-and-quality

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
with:
7474
languages: ${{ matrix.language }}
7575
build-mode: ${{ matrix.build-mode }}
76+
config-file: ./.github/codeql/codeql-config.yml
7677
# If you wish to specify custom queries, you can do so here or in a config file.
7778
# By default, queries listed here will override any specified in a config file.
7879
# Prefix the list here with "+" to use these queries and those in the config file.

0 commit comments

Comments
 (0)