mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-10-08 01:01:10 +02:00
* chore(docker): pin temporal image to 1.7.0 * feat(preflight): block link-local metadata range in target URL check * style: apply biome formatting and import sorting
23 lines
820 B
TypeScript
23 lines
820 B
TypeScript
/**
|
|
* FindingsProvider — injectable interface for external findings integration.
|
|
*
|
|
* Allows external security data from consumer-supplied sources to be merged
|
|
* into the exploitation pipeline between vulnerability analysis and exploitation.
|
|
*
|
|
* Default: no-op returning { mergedCount: 0 }.
|
|
*/
|
|
|
|
import type { ActivityInput } from '../temporal/activities.js';
|
|
import type { VulnType } from '../types/agents.js';
|
|
|
|
export interface FindingsProvider {
|
|
mergeFindingsIntoQueue(repoPath: string, vulnType: VulnType, input: ActivityInput): Promise<{ mergedCount: number }>;
|
|
}
|
|
|
|
/** Default no-op implementation — no external findings to merge. */
|
|
export class NoOpFindingsProvider implements FindingsProvider {
|
|
async mergeFindingsIntoQueue(): Promise<{ mergedCount: number }> {
|
|
return { mergedCount: 0 };
|
|
}
|
|
}
|