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
lib/init-action.js generated
View File

@@ -92986,7 +92986,7 @@ async function initConfig(features, inputs) {
await logGitVersionTelemetry(config, gitVersion);
} catch (e) {
logger.warning(`Could not determine Git version: ${getErrorMessage(e)}`);
if (isInTestMode() && process.env.CODEQL_ACTION_TOLERATE_MISSING_GIT_VERSION !== "true") {
if (isInTestMode() && process.env["CODEQL_ACTION_TOLERATE_MISSING_GIT_VERSION" /* TOLERATE_MISSING_GIT_VERSION */] !== "true") {
throw e;
}
}