MCPcopy
hub / github.com/promptfoo/promptfoo / logActCommentPreview

Function logActCommentPreview

code-scan-action/src/main.ts:693–706  ·  view source on GitHub ↗
(comments: Comment[])

Source from the content-addressed store, hash-verified

691}
692
693function logActCommentPreview(comments: Comment[]): void {
694 if (process.env.ACT !== 'true' || comments.length === 0) {
695 return;
696 }
697
698 core.info('🧪 Running in act - showing comment preview:');
699 comments.forEach((comment: Comment, index: number) => {
700 core.info(` ${index + 1}. ${comment.file}:${comment.line}`);
701 const preview = comment.fix
702 ? `${comment.finding.substring(0, 80)}... [+ suggested fix]`
703 : comment.finding.substring(0, 100);
704 core.info(` ${preview}${comment.finding.length > 100 ? '...' : ''}`);
705 });
706}
707
708function cleanupConfig(configPath: string, finalConfigPath: string): void {
709 if (!configPath) {

Callers 1

runCodeScanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…