MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / isFindingEligibleForAutoAnalysis

Function isFindingEligibleForAutoAnalysis

services/security-sync/src/sync.ts:1125–1147  ·  view source on GitHub ↗
(params: {
  findingCreatedAt: string;
  findingStatus: string;
  severity: string | null;
  ownerAutoAnalysisEnabledAt: string | null;
  isAgentEnabled: boolean;
  autoAnalysisEnabled: boolean;
  autoAnalysisMinSeverity: AutoAnalysisMinSeverity;
  autoAnalysisIncludeExisting?: boolean;
})

Source from the content-addressed store, hash-verified

1123 effectiveSeverity: securitySeveritySchema,
1124 findingCreatedAt: dbTimestampSchema,
1125 ownedByUserId: z.string().nullable(),
1126 ownedByOrganizationId: z.string().uuid().nullable(),
1127 source: z.string(),
1128 sourceId: z.string(),
1129 repoFullName: z.string(),
1130 title: z.string(),
1131 packageName: z.string(),
1132 packageEcosystem: z.string(),
1133 manifestPath: z.string().nullable(),
1134 patchedVersion: z.string().nullable(),
1135 ghsaId: z.string().nullable(),
1136 cveId: z.string().nullable(),
1137 cweIds: z.array(z.string()).nullable(),
1138 cvssScore: z.union([z.string(), z.number()]).nullable(),
1139 dependabotHtmlUrl: z.string().nullable(),
1140 firstDetectedAt: dbTimestampSchema,
1141 fixedAt: nullableDbTimestampSchema,
1142 slaDueAt: nullableDbTimestampSchema,
1143});
1144
1145type UpsertSecurityFindingResult = z.infer<typeof upsertSecurityFindingResultSchema>;
1146const supersededSecurityFindingResultSchema = upsertSecurityFindingResultSchema.extend({
1147 canonicalFindingId: z.string().uuid(),
1148});
1149type SupersededSecurityFindingResult = z.infer<typeof supersededSecurityFindingResultSchema>;
1150

Callers 1

sync.test.tsFile · 0.85

Calls 1

Tested by

no test coverage detected