Use EnvVar

This commit is contained in:
Henry Mercer
2025-12-18 14:34:50 +00:00
parent 034401b281
commit 8b428c0d4c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -55,6 +55,7 @@ import {
getErrorMessage,
isInTestMode,
} from "./util";
import { EnvVar } from "./environment";
export * from "./config/db-config";
@@ -941,7 +942,7 @@ export async function initConfig(
// Docker container where git may not be available.
if (
isInTestMode() &&
process.env.CODEQL_ACTION_TOLERATE_MISSING_GIT_VERSION !== "true"
process.env[EnvVar.TOLERATE_MISSING_GIT_VERSION] !== "true"
) {
throw e;
}