mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
Use EnvVar
This commit is contained in:
Generated
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user