diff --git a/lib/analysis-paths.js b/lib/analysis-paths.js index 69a022e5f..eae0ec834 100644 --- a/lib/analysis-paths.js +++ b/lib/analysis-paths.js @@ -11,9 +11,17 @@ const core = __importStar(require("@actions/core")); function isInterpretedLanguage(language) { return language === 'javascript' || language === 'python'; } +// Matches a string containing only characters that are legal to include in paths on windows. +exports.legalWindowsPathCharactersRegex = /^[^<>:"\|?]*$/; // Builds an environment variable suitable for LGTM_INDEX_INCLUDE or LGTM_INDEX_EXCLUDE function buildIncludeExcludeEnvVar(paths) { - return paths.filter(p => p.indexOf('**') === -1).join('\n'); + // Ignore anything containing a * + paths = paths.filter(p => p.indexOf('*') === -1); + // Some characters are illegal in path names in windows + if (process.platform === 'win32') { + paths = paths.filter(p => p.match(exports.legalWindowsPathCharactersRegex)); + } + return paths.join('\n'); } function includeAndExcludeAnalysisPaths(config, languages) { // The 'LGTM_INDEX_INCLUDE' and 'LGTM_INDEX_EXCLUDE' environment variables diff --git a/lib/analysis-paths.js.map b/lib/analysis-paths.js.map index 9ffe2eb3d..f32a887ed 100644 --- a/lib/analysis-paths.js.map +++ b/lib/analysis-paths.js.map @@ -1 +1 @@ -{"version":3,"file":"analysis-paths.js","sourceRoot":"","sources":["../src/analysis-paths.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AAItC,SAAS,qBAAqB,CAAC,QAAQ;IACrC,OAAO,QAAQ,KAAK,YAAY,IAAI,QAAQ,KAAK,QAAQ,CAAC;AAC5D,CAAC;AAED,uFAAuF;AACvF,SAAS,yBAAyB,CAAC,KAAe;IAChD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,8BAA8B,CAAC,MAA0B,EAAE,SAAmB;IAC5F,0EAA0E;IAC1E,+DAA+D;IAC/D,sEAAsE;IACt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AC;IAC7B,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC;IACvD,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC;IAC7D,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;QACxB,IAAI,CAAC,cAAc,CAAC,oBAAoB,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAC/D;IAED,oEAAoE;IACpE,sEAAsE;IACtE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QACxB,MAAM,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC;QAC/B,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC;QACvB,CAAC,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE;QAC3C,IAAI,CAAC,OAAO,CAAC,4FAA4F,CAAC,CAAC;KAC5G;AACH,CAAC;AAjCD,wEAiCC"} \ No newline at end of file diff --git a/lib/config-utils.js b/lib/config-utils.js index 161173158..8fbe2b068 100644 --- a/lib/config-utils.js +++ b/lib/config-utils.js @@ -112,8 +112,6 @@ const pathStarsRegex = /.*(?:\*\*[^/].*|\*\*$|[^/]\*\*.*)/; // Characters that are supported by filters in workflows, but not by us. // See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet const filterPatternCharactersRegex = /.*[\?\+\[\]!].*/; -// Matches any string containing characters that are illegal to include in paths on windows. -exports.illegalWindowsCharactersRegex = /.*[<>:"\|?*].*/; // Checks that a paths of paths-ignore entry is valid, possibly modifying it // to make it valid, or if not possible then throws an error. function validateAndSanitisePath(originalPath, propertyName, configFile) { @@ -136,12 +134,7 @@ function validateAndSanitisePath(originalPath, propertyName, configFile) { // Output a warning so the user knows, but otherwise continue normally. if (path.match(filterPatternCharactersRegex)) { core.warning(getConfigFilePropertyError(configFile, propertyName, '"' + originalPath + '" contains an unsupported character. ' + - 'The filter pattern characteres ?, +, [, ], ! are not supported and will be matched literally.')); - } - // Check for any characters that are illegal in path names in windows - if (process.platform === 'win32' && path.match(exports.illegalWindowsCharactersRegex)) { - throw new Error('"' + path + '" contains an invalid character. ' + - 'The characteres <, >, :, ", !, |, ?, * are forbidden to use in paths on windows.'); + 'The filter pattern characters ?, +, [, ], ! are not supported and will be matched literally.')); } return path; } diff --git a/lib/config-utils.js.map b/lib/config-utils.js.map index b6e0ab639..64adbadce 100644 --- a/lib/config-utils.js.map +++ b/lib/config-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"config-utils.js","sourceRoot":"","sources":["../src/config-utils.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,8CAAgC;AAChC,2CAA6B;AAE7B,kDAAoC;AACpC,6CAA+B;AAE/B,MAAM,aAAa,GAAG,MAAM,CAAC;AAC7B,MAAM,gCAAgC,GAAG,yBAAyB,CAAC;AACnE,MAAM,gBAAgB,GAAG,SAAS,CAAC;AACnC,MAAM,qBAAqB,GAAG,MAAM,CAAC;AACrC,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAC7C,MAAM,cAAc,GAAG,OAAO,CAAC;AAE/B,MAAa,aAAa;IAKxB,YAAY,UAAkB,EAAE,GAAW;QAFpC,SAAI,GAAG,EAAE,CAAC;QAGf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;CACF;AATD,sCASC;AAED,0EAA0E;AAC1E,MAAM,aAAa,GAAG,CAAC,mBAAmB,EAAE,sBAAsB,CAAU,CAAC;AAI7E,MAAa,MAAM;IAAnB;QACS,SAAI,GAAG,EAAE,CAAC;QACV,0BAAqB,GAAG,K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AAC,YAAY,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;KAEjC;SAAM;QACL,MAAM,MAAM,GAAG,MAAM,UAAU,EAAE,CAAC;QAClC,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAClC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;QACnC,MAAM,UAAU,CAAC,MAAM,CAAC,CAAC;QACzB,OAAO,MAAM,CAAC;KACf;AACH,CAAC;AAfD,gCAeC"} \ No newline at end of file +{"version":3,"file":"config-utils.js","sourceRoot":"","sources":["../src/config-utils.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,8CAAgC;AAChC,2CAA6B;AAE7B,kDAAoC;AACpC,6CAA+B;AAE/B,MAAM,aAAa,GAAG,MAAM,CAAC;AAC7B,MAAM,gCAAgC,GAAG,yBAAyB,CAAC;AACnE,MAAM,gBAAgB,GAAG,SAAS,CAAC;AACnC,MAAM,qBAAqB,GAAG,MAAM,CAAC;AACrC,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAC7C,MAAM,cAAc,GAAG,OAAO,CAAC;AAE/B,MAAa,aAAa;IAKxB,YAAY,UAAkB,EAAE,GAAW;QAFpC,SAAI,GAAG,EAAE,CAAC;QAGf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;CACF;AATD,sCASC;AAED,0EAA0E;AAC1E,MAAM,aAAa,GAAG,CAAC,mBAAmB,EAAE,sBAAsB,CAAU,CAAC;AAI7E,MAAa,MAAM;IAAnB;QACS,SAAI,GAAG,EAAE,CAAC;QACV,0BAAqB,GAAG,KAAK,CAAC;QAC9B,sBAAiB,GAAa,EAAE,CAAC;QACjC,oBAAe,GAAoB,EAAE,CAAC;QACtC,qBAAgB,GAAmB,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} \ No newline at end of file diff --git a/src/analysis-paths.ts b/src/analysis-paths.ts index 88e414916..4183c4997 100644 --- a/src/analysis-paths.ts +++ b/src/analysis-paths.ts @@ -6,9 +6,20 @@ function isInterpretedLanguage(language): boolean { return language === 'javascript' || language === 'python'; } +// Matches a string containing only characters that are legal to include in paths on windows. +export const legalWindowsPathCharactersRegex = /^[^<>:"\|?]*$/; + // Builds an environment variable suitable for LGTM_INDEX_INCLUDE or LGTM_INDEX_EXCLUDE function buildIncludeExcludeEnvVar(paths: string[]): string { - return paths.filter(p => p.indexOf('**') === -1).join('\n'); + // Ignore anything containing a * + paths = paths.filter(p => p.indexOf('*') === -1); + + // Some characters are illegal in path names in windows + if (process.platform === 'win32') { + paths = paths.filter(p => p.match(legalWindowsPathCharactersRegex)); + } + + return paths.join('\n'); } export function includeAndExcludeAnalysisPaths(config: configUtils.Config, languages: string[]) { diff --git a/src/config-utils.ts b/src/config-utils.ts index bc13e8fc7..d4fc446c6 100644 --- a/src/config-utils.ts +++ b/src/config-utils.ts @@ -122,9 +122,6 @@ const pathStarsRegex = /.*(?:\*\*[^/].*|\*\*$|[^/]\*\*.*)/; // See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet const filterPatternCharactersRegex = /.*[\?\+\[\]!].*/; -// Matches any string containing characters that are illegal to include in paths on windows. -export const illegalWindowsCharactersRegex = /.*[<>:"\|?*].*/; - // Checks that a paths of paths-ignore entry is valid, possibly modifying it // to make it valid, or if not possible then throws an error. export function validateAndSanitisePath( @@ -161,13 +158,7 @@ export function validateAndSanitisePath( configFile, propertyName, '"' + originalPath + '" contains an unsupported character. ' + - 'The filter pattern characteres ?, +, [, ], ! are not supported and will be matched literally.')); - } - - // Check for any characters that are illegal in path names in windows - if (process.platform === 'win32' && path.match(illegalWindowsCharactersRegex)) { - throw new Error('"' + path + '" contains an invalid character. ' + - 'The characteres <, >, :, ", !, |, ?, * are forbidden to use in paths on windows.'); + 'The filter pattern characters ?, +, [, ], ! are not supported and will be matched literally.')); } return path;