mirror of
https://github.com/github/codeql-action.git
synced 2026-01-04 05:30:16 +08:00
Rename defaultQueryFilters
This commit renames AugmentationProperties.defaultQueryFilters to extraQueryExclusions, and changes its type to ExcludeQueryFilter[]. It matters whether we are adding query inclusions or exclusions, and this renaming makes that distinction clearer.
This commit is contained in:
@@ -1266,7 +1266,7 @@ async function generateCodeScanningConfig(
|
||||
}
|
||||
|
||||
augmentedConfig["query-filters"] = [
|
||||
...(config.augmentationProperties.defaultQueryFilters || []),
|
||||
...(config.augmentationProperties.extraQueryExclusions || []),
|
||||
...(augmentedConfig["query-filters"] || []),
|
||||
];
|
||||
if (augmentedConfig["query-filters"]?.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user