mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Use a relative path to ignore the runner temporary directory.
This commit is contained in:
@@ -64,7 +64,7 @@ test("exclude temp dir", async (t) => {
|
||||
};
|
||||
analysisPaths.includeAndExcludeAnalysisPaths(config, getRunnerLogger(true));
|
||||
t.is(process.env["LGTM_INDEX_INCLUDE"], undefined);
|
||||
t.is(process.env["LGTM_INDEX_EXCLUDE"], tempDir);
|
||||
t.is(process.env["LGTM_INDEX_EXCLUDE"], "codeql-runner-temp");
|
||||
t.is(process.env["LGTM_INDEX_FILTERS"], undefined);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -59,7 +59,7 @@ export function includeAndExcludeAnalysisPaths(
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user