Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update 20250711005900_github-app-connection-to-environments.ts

Daniel Hougaarddad5153f6142
diff --git a/backend/src/db/migrations/20250711005900_github-app-connection-to-environments.ts b/backend/src/db/migrations/20250711005900_github-app-connection-to-environments.ts
index 14e9ddd653..548d6207a8 100644
--- a/backend/src/db/migrations/20250711005900_github-app-connection-to-environments.ts
+++ b/backend/src/db/migrations/20250711005900_github-app-connection-to-environments.ts
@@ -2,6 +2,7 @@ import { Knex } from "knex";
import { inMemoryKeyStore } from "@app/keystore/memory";
import { selectAllTableCols } from "@app/lib/knex";
+import { superAdminDALFactory } from "@app/services/super-admin/super-admin-dal";
import { TableName } from "../schemas";
import { getMigrationEnvConfig } from "./utils/env-config";
@@ -12,7 +13,8 @@ export async function up(knex: Knex) {
.select(selectAllTableCols(TableName.SuperAdmin))
.whereNotNull(`${TableName.SuperAdmin}.encryptedGitHubAppConnectionClientId`);
- const envConfig = getMigrationEnvConfig();
+ const superAdminDAL = superAdminDALFactory(knex);
+ const envConfig = await getMigrationEnvConfig(superAdminDAL);
const keyStore = inMemoryKeyStore();
const { kmsService } = await getMigrationEncryptionServices({ envConfig, keyStore, db: knex });