Converting JSON report to TABLE report missing code blocks when output to console #5530
Closed
2 tasks done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
scan/misconfiguration
Issues relating to misconfiguration scanning
Discussed in #5514
Originally posted by codemedic November 5, 2023
Description
When converting a JSON scan report to
table
format, all seems fine when written to a file, by redirecting the output. But when written to console, to see it in colour, the code blocks seem missing. Only the line numbers are shown.Desired Behavior
Similar to how the report is when redirected to a file, the console output should contain code-blocks highlighting the issue location.
Actual Behavior
No code block is present in console output.
Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
Table
Mode
Standalone
Debug Output
Operating System
Linux
Version
Checklist
trivy image --reset
The text was updated successfully, but these errors were encountered: