From 83b6357e5bd9da900ce31352216d59cb1c5171af Mon Sep 17 00:00:00 2001 From: otdoges Date: Fri, 25 Jul 2025 15:16:42 -0500 Subject: [PATCH] Potential fix for code scanning alert no. 77: Disallow the `any` type Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/lib/e2b-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/e2b-service.ts b/src/lib/e2b-service.ts index 02efe666..eba01866 100644 --- a/src/lib/e2b-service.ts +++ b/src/lib/e2b-service.ts @@ -83,7 +83,7 @@ class E2BService { * Get E2B API key from environment */ private getApiKey(): string | null { - return process.env.E2B_API_KEY || (import.meta as any).env?.VITE_E2B_API_KEY || null; + return process.env.E2B_API_KEY || (import.meta as { env?: { VITE_E2B_API_KEY?: string } }).env?.VITE_E2B_API_KEY || null; } /**