Treat empty CODEQL_ACTION_TEMP the same as it not being set.

This commit is contained in:
Chris Gavin 2021-02-15 11:39:04 +00:00
parent ed751ece83
commit 6452109691
No known key found for this signature in database
GPG key ID: 07F950B80C27E4DA
3 changed files with 7 additions and 3 deletions

4
lib/actions-util.js generated
View file

@ -53,7 +53,9 @@ function getRequiredEnvParam(paramName) {
exports.getRequiredEnvParam = getRequiredEnvParam;
function getTemporaryDirectory() {
const value = process.env["CODEQL_ACTION_TEMP"];
return value !== undefined ? value : getRequiredEnvParam("RUNNER_TEMP");
return value !== undefined && value !== ""
? value
: getRequiredEnvParam("RUNNER_TEMP");
}
exports.getTemporaryDirectory = getTemporaryDirectory;
/**

File diff suppressed because one or more lines are too long

View file

@ -47,7 +47,9 @@ export function getRequiredEnvParam(paramName: string): string {
export function getTemporaryDirectory(): string {
const value = process.env["CODEQL_ACTION_TEMP"];
return value !== undefined ? value : getRequiredEnvParam("RUNNER_TEMP");
return value !== undefined && value !== ""
? value
: getRequiredEnvParam("RUNNER_TEMP");
}
/**