Use a relative path to ignore the runner temporary directory.
This commit is contained in:
parent
206e34cbb4
commit
dbecf76db8
6 changed files with 6 additions and 6 deletions
2
lib/analysis-paths.js
generated
2
lib/analysis-paths.js
generated
|
|
@ -48,7 +48,7 @@ function includeAndExcludeAnalysisPaths(config, logger) {
|
|||
let pathsIgnore = config.pathsIgnore;
|
||||
if (!tempRelativeToWorking.startsWith("..")) {
|
||||
logger.warning("Storing the CodeQL Runner in the directory being analyzed is not recommended.");
|
||||
pathsIgnore = pathsIgnore.concat(config.tempDir);
|
||||
pathsIgnore = pathsIgnore.concat(tempRelativeToWorking);
|
||||
}
|
||||
if (pathsIgnore.length !== 0) {
|
||||
process.env["LGTM_INDEX_EXCLUDE"] = buildIncludeExcludeEnvVar(pathsIgnore);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue