Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix lint
Thiago Araujo da Silva716b99db2b73
diff --git a/backend/src/services/alert/providers/identity-credential-alert-dal.ts b/backend/src/services/alert/providers/identity-credential-alert-dal.tsindex a0e6dea468..6b8922ae83 100644--- a/backend/src/services/alert/providers/identity-credential-alert-dal.ts+++ b/backend/src/services/alert/providers/identity-credential-alert-dal.ts@@ -66,8 +66,9 @@ export const identityCredentialAlertDALFactory = (db: TDbClient) => {).where("projectMembership.scope", AccessScope.Project).where("projectMembership.scopeProjectId", projectId)- .where((bd) =>- void bd.whereNull(`${TableName.Identity}.projectId`).orWhere(`${TableName.Identity}.projectId`, projectId)+ .where(+ (bd) =>+ void bd.whereNull(`${TableName.Identity}.projectId`).orWhere(`${TableName.Identity}.projectId`, projectId));} else {void query.whereNull(`${TableName.Identity}.projectId`);diff --git a/backend/src/services/alert/providers/identity-credential-alert-provider.test.ts b/backend/src/services/alert/providers/identity-credential-alert-provider.test.tsindex fa7a5ceb57..b809d63e2e 100644--- a/backend/src/services/alert/providers/identity-credential-alert-provider.test.ts+++ b/backend/src/services/alert/providers/identity-credential-alert-provider.test.ts@@ -67,8 +67,7 @@ const buildProvider = (opts?: {opts?.onFind?.(args);return opts?.secrets ?? [];},- findIdentityInOrg: async () =>- (opts?.inOrg ?? true) ? { projectId: opts?.ownerProjectId ?? null } : undefined,+ findIdentityInOrg: async () => ((opts?.inOrg ?? true) ? { projectId: opts?.ownerProjectId ?? null } : undefined),isIdentityInProject: async () => opts?.inProject ?? true,getProjectType: async () => opts?.projectType ?? null};diff --git a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityDetailsSection.tsx b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityDetailsSection.tsxindex 7a9b34f71a..c5da5eb3e4 100644--- a/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityDetailsSection.tsx+++ b/frontend/src/pages/organization/IdentityDetailsByIDPage/components/IdentityDetailsSection.tsx@@ -189,7 +189,9 @@ export const IdentityDetailsSection = ({)}</DetailValue></Detail>- <IdentityAlertDetail identityId={identityId} identityName={data.identity.name} />+ {!data.identity.projectId && (+ <IdentityAlertDetail identityId={identityId} identityName={data.identity.name} />+ )}</>)}</DetailGroup>