mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 22:50:17 +08:00
Use EnvVar
This commit is contained in:
2
lib/init-action.js
generated
2
lib/init-action.js
generated
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user