Skip to content

Commit 47f2611

Browse files
authored
Merge pull request #42 from GitGuardian/salomevoltz/load-dot-env-configuration
fix(configuration): Load .env configuration
2 parents 337794a + a5700c8 commit 47f2611

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/run-ggshield.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/naming-convention */
12
import { spawnSync, SpawnSyncOptionsWithStringEncoding, SpawnSyncReturns } from "child_process";
23
import { GGShieldConfiguration } from "./ggshield-configuration";
34
import { workspace } from "vscode";
@@ -18,18 +19,15 @@ export function runGGShieldCommand(
1819
let env: {
1920
GITGUARDIAN_API_URL: string;
2021
GG_USER_AGENT: string;
21-
GITGUARDIAN_DONT_LOAD_ENV: string;
2222
GITGUARDIAN_API_KEY?: string;
2323
} = {
2424
GITGUARDIAN_API_URL: apiUrl,
2525
GG_USER_AGENT: "gitguardian-vscode",
26-
GITGUARDIAN_DONT_LOAD_ENV: "true",
2726
};
2827

2928
if (apiKey) {
3029
env = {
3130
...env,
32-
// eslint-disable-next-line @typescript-eslint/naming-convention
3331
GITGUARDIAN_API_KEY: apiKey,
3432
};
3533
}

0 commit comments

Comments
 (0)