chore: print audit logs folder location

This commit is contained in:
ajmallesh
2025-10-28 10:31:00 -07:00
parent d8efd78ac0
commit 5b92ff52c4
+13 -5
View File
@@ -24,7 +24,7 @@ import { assembleFinalReport } from './src/phases/reporting.js';
// Utils // Utils
import { timingResults, costResults, displayTimingSummary, Timer } from './src/utils/metrics.js'; import { timingResults, costResults, displayTimingSummary, Timer } from './src/utils/metrics.js';
import { formatDuration } from './src/audit/utils.js'; import { formatDuration, generateAuditPath } from './src/audit/utils.js';
// CLI // CLI
import { handleDeveloperCommand } from './src/cli/command-handler.js'; import { handleDeveloperCommand } from './src/cli/command-handler.js';
@@ -339,8 +339,14 @@ async function main(webUrl, repoPath, configPath = null, pipelineTestingMode = f
console.log(chalk.cyan.bold('\n🎉 PENETRATION TESTING COMPLETE!')); console.log(chalk.cyan.bold('\n🎉 PENETRATION TESTING COMPLETE!'));
console.log(chalk.gray('─'.repeat(60))); console.log(chalk.gray('─'.repeat(60)));
// Return final report path for clickable output // Calculate audit logs path
return path.join(sourceDir, 'deliverables', 'comprehensive_security_assessment_report.md'); const auditLogsPath = generateAuditPath(session);
// Return final report path and audit logs path for clickable output
return {
reportPath: path.join(sourceDir, 'deliverables', 'comprehensive_security_assessment_report.md'),
auditLogsPath
};
} }
// Entry point - handle both direct node execution and shebang execution // Entry point - handle both direct node execution and shebang execution
@@ -442,9 +448,11 @@ if (pipelineTestingMode) {
} }
try { try {
const finalReportPath = await main(webUrl, repoPathValidation.path, configPath, pipelineTestingMode); const result = await main(webUrl, repoPathValidation.path, configPath, pipelineTestingMode);
console.log(chalk.green.bold('\n📄 FINAL REPORT AVAILABLE:')); console.log(chalk.green.bold('\n📄 FINAL REPORT AVAILABLE:'));
console.log(chalk.cyan(finalReportPath)); console.log(chalk.cyan(result.reportPath));
console.log(chalk.green.bold('\n📂 AUDIT LOGS AVAILABLE:'));
console.log(chalk.cyan(result.auditLogsPath));
} catch (error) { } catch (error) {
// Enhanced error boundary with proper logging // Enhanced error boundary with proper logging