misc: added secret scanning whitelist conig

This commit is contained in:
Sheen Capadngan
2024-10-19 01:59:45 +08:00
parent b22a93a175
commit 959a5ec55b
6 changed files with 21 additions and 10 deletions
+1 -3
View File
@@ -225,9 +225,7 @@ export const registerRoutes = async (
}: { auditLogDb?: Knex; db: Knex; smtp: TSmtpService; queue: TQueueServiceFactory; keyStore: TKeyStoreFactory }
) => {
const appCfg = getConfig();
if (!appCfg.DISABLE_SECRET_SCANNING) {
await server.register(registerSecretScannerGhApp, { prefix: "/ss-webhook" });
}
await server.register(registerSecretScannerGhApp, { prefix: "/ss-webhook" });
// db layers
const userDAL = userDALFactory(db);