Skip to content

fix: replace async log.warn with sync cliux.print before audit prompt and complete hasFix return#296

Open
cs-raj wants to merge 1 commit into
developmentfrom
fix/audit-prompt-visibility-and-hasFix-return
Open

fix: replace async log.warn with sync cliux.print before audit prompt and complete hasFix return#296
cs-raj wants to merge 1 commit into
developmentfrom
fix/audit-prompt-visibility-and-hasFix-return

Conversation

@cs-raj

@cs-raj cs-raj commented Jul 16, 2026

Copy link
Copy Markdown
Contributor
  • Replace log.warn (Winston async stream) with cliux.print (process.stdout.write, sync) before cliux.inquire() in module-importer.ts and audit-base-command.ts so the report path message is guaranteed to flush before inquirer takes terminal control
  • Add missingMandatoryFields, missingTitleFields, missingMultipleFields to the hasFix return value in audit-base-command.ts — these were checked in the log condition but omitted from the return, silently skipping the import confirmation prompt when only those module types had issues

… and complete hasFix return

- Replace log.warn (Winston async stream) with cliux.print (process.stdout.write, sync)
  before cliux.inquire() in module-importer.ts and audit-base-command.ts so the report
  path message is guaranteed to flush before inquirer takes terminal control
- Add missingMandatoryFields, missingTitleFields, missingMultipleFields to the hasFix
  return value in audit-base-command.ts — these were checked in the log condition but
  omitted from the return, silently skipping the import confirmation prompt when only
  those module types had issues

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cs-raj cs-raj requested a review from a team as a code owner July 16, 2026 12:07
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 2 0 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 1 90 / 365 days ⚠️ Warning
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 1
  • Low without fixes: 0

⚠️ BUILD PASSED WITH WARNINGS - SLA breaches detected for issues without available fixes

Consider reviewing these vulnerabilities when fixes become available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant