Skip to content

Commit 8b428c0

Browse files
committed
Use EnvVar
1 parent 034401b commit 8b428c0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/init-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config-utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import {
5555
getErrorMessage,
5656
isInTestMode,
5757
} from "./util";
58+
import { EnvVar } from "./environment";
5859

5960
export * from "./config/db-config";
6061

@@ -941,7 +942,7 @@ export async function initConfig(
941942
// Docker container where git may not be available.
942943
if (
943944
isInTestMode() &&
944-
process.env.CODEQL_ACTION_TOLERATE_MISSING_GIT_VERSION !== "true"
945+
process.env[EnvVar.TOLERATE_MISSING_GIT_VERSION] !== "true"
945946
) {
946947
throw e;
947948
}

0 commit comments

Comments
 (0)