mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 19:20:08 +08:00
Handle empty lists as well as undefined ones
This commit is contained in:
@@ -127,12 +127,15 @@ export async function runInit(
|
||||
return await getCombinedTracerConfig(config);
|
||||
}
|
||||
|
||||
function printPathFiltersWarning(config: configUtils.Config, logger: Logger) {
|
||||
export function printPathFiltersWarning(
|
||||
config: configUtils.Config,
|
||||
logger: Logger,
|
||||
) {
|
||||
// Index include/exclude/filters only work in javascript/python/ruby.
|
||||
// If any other languages are detected/configured then show a warning.
|
||||
if (
|
||||
(config.originalUserInput.paths ||
|
||||
config.originalUserInput["paths-ignore"]) &&
|
||||
(config.originalUserInput.paths?.length ||
|
||||
config.originalUserInput["paths-ignore"]?.length) &&
|
||||
!config.languages.every(isScannedLanguage)
|
||||
) {
|
||||
logger.warning(
|
||||
|
||||
Reference in New Issue
Block a user