Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
fix: add CodeQL configuration to properly exclude template directories (#3641)
Rip&Tearf0f94f25400c
diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.ymlnew file mode 100644index 000000000..ac87b85a4--- /dev/null+++ b/.github/codeql/codeql-config.yml@@ -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\ No newline at end of filediff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.ymlindex b2bd0d883..6e0bf7c24 100644--- a/.github/workflows/codeql.yml+++ b/.github/workflows/codeql.yml@@ -73,6 +73,7 @@ jobs:with:languages: ${{ matrix.language }}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.# 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.