MCPcopy
hub / github.com/promptfoo/promptfoo / getScanResponse

Function getScanResponse

code-scan-action/src/main.ts:366–371  ·  view source on GitHub ↗
(cliArgs: string[], oidcToken: string | undefined)

Source from the content-addressed store, hash-verified

364}
365
366function getScanResponse(cliArgs: string[], oidcToken: string | undefined): Promise<ScanResponse> {
367 if (process.env.ACT === 'true') {
368 return Promise.resolve(createMockScanResponse());
369 }
370 return runPromptfooScan(cliArgs, oidcToken);
371}
372
373function buildCommentBody(comment: Comment): string {
374 let body = formatSeverity(comment.severity) + comment.finding;

Callers 1

runCodeScanFunction · 0.85

Calls 3

createMockScanResponseFunction · 0.85
runPromptfooScanFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…