-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or requestjavascriptPull requests that update javascript codePull requests that update javascript code
Description
Problem
The CodeQL CDS extractor does not respect the paths-ignore configuration from the user's CodeQL config file (.github/codeql/codeql-config.yml). When a user configures paths-ignore to exclude certain directories or file patterns from analysis, the JavaScript extractor already honors this via LGTM_INDEX_FILTERS, but the CDS extractor independently discovers and compiles CDS files without consulting the config — resulting in ignored directories still being compiled and extracted.
Expected Behavior
When a paths-ignore list is present in the CodeQL configuration file, the CDS extractor should:
- Skip CDS projects whose directory matches a
paths-ignorepattern - Filter out individual CDS files that match a
paths-ignorepattern before compilation - Propagate the patterns to the JavaScript extractor (via
LGTM_INDEX_FILTERS) so compiled.cds.jsonoutput files in ignored directories are also excluded from extraction
References
- CodeQL
paths-ignoredocumentation - The JavaScript extractor already supports this via the
LGTM_INDEX_FILTERSenvironment variable, which the CodeQL CLI populates from the config file
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestjavascriptPull requests that update javascript codePull requests that update javascript code