Skip to content

Fix CodeQL configuration to properly exclude template directories#3641

Merged
theCyberTech merged 2 commits intocrewAIInc:mainfrom
theCyberTech:main
Oct 6, 2025
Merged

Fix CodeQL configuration to properly exclude template directories#3641
theCyberTech merged 2 commits intocrewAIInc:mainfrom
theCyberTech:main

Conversation

@theCyberTech
Copy link
Copy Markdown
Member

Problem

The CodeQL workflow's paths-ignore configuration was not working to exclude template directories from analysis because CodeQL requires a separate configuration file.

Solution

  • Created .github/codeql/codeql-config.yml to exclude template files from analysis
  • Updated CodeQL workflow to use config-file parameter
  • Excludes src/crewai/cli/templates/** and other non-source directories

Benefits

  • Improved CodeQL performance by focusing on relevant code
  • Cleaner security scan results
  • Excludes template/boilerplate files from analysis

theCyberTech and others added 2 commits October 3, 2025 09:16
- Create .github/codeql/codeql-config.yml to exclude template files from CodeQL analysis
- Update CodeQL workflow to use the configuration file via config-file parameter
- Excludes src/crewai/cli/templates/** and other non-source directories
- Improves CodeQL performance by focusing analysis on relevant application code

The original paths-ignore in the workflow only controlled when the workflow ran,
but CodeQL needs a separate config file to actually exclude paths from analysis.
Fix CodeQL configuration to properly exclude template directories
@greysonlalonde greysonlalonde marked this pull request as ready for review October 5, 2025 23:44
@theCyberTech theCyberTech merged commit f0f94f2 into crewAIInc:main Oct 6, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants