mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 00:02:36 +00:00
fix: add CodeQL configuration to properly exclude template directories (#3641)
This commit is contained in:
21
.github/codeql/codeql-config.yml
vendored
Normal file
21
.github/codeql/codeql-config.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: "CodeQL Config"
|
||||||
|
|
||||||
|
paths-ignore:
|
||||||
|
# Ignore template files - these are boilerplate code that shouldn't be analyzed
|
||||||
|
- "src/crewai/cli/templates/**"
|
||||||
|
# Ignore test cassettes - these are test fixtures/recordings
|
||||||
|
- "tests/cassettes/**"
|
||||||
|
# Ignore cache and build artifacts
|
||||||
|
- ".cache/**"
|
||||||
|
# Ignore documentation build artifacts
|
||||||
|
- "docs/.cache/**"
|
||||||
|
|
||||||
|
paths:
|
||||||
|
# Include all Python source code
|
||||||
|
- "src/**"
|
||||||
|
# Include tests (but exclude cassettes)
|
||||||
|
- "tests/**"
|
||||||
|
|
||||||
|
# Configure specific queries or packs if needed
|
||||||
|
# queries:
|
||||||
|
# - uses: security-and-quality
|
||||||
1
.github/workflows/codeql.yml
vendored
1
.github/workflows/codeql.yml
vendored
@@ -73,6 +73,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
build-mode: ${{ matrix.build-mode }}
|
build-mode: ${{ matrix.build-mode }}
|
||||||
|
config-file: ./.github/codeql/codeql-config.yml
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
# By default, queries listed here will override any specified in a config file.
|
# By default, queries listed here will override any specified in a config file.
|
||||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
|
|||||||
Reference in New Issue
Block a user