Replies: 2 comments 3 replies
-
Hello @lmpeiris It looks like your template file is corrupt. Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
3 replies
-
closing this bug as invalid |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When trying to use trivy to generate html report using html.tpl, below error is thrown.
2023-11-09T09:18:28.952+0530 INFO Vulnerability scanning is enabled
2023-11-09T09:18:28.952+0530 INFO Secret scanning is enabled
2023-11-09T09:18:28.952+0530 INFO If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2023-11-09T09:18:28.952+0530 INFO Please see also https://aquasecurity.github.io/trivy/v0.47/docs/scanner/secret/#recommendation for faster secret detection
2023-11-09T09:18:29.122+0530 INFO Detected OS: debian
2023-11-09T09:18:29.122+0530 INFO Detecting Debian vulnerabilities...
2023-11-09T09:18:29.151+0530 INFO Number of language-specific files: 0
2023-11-09T09:18:29.162+0530 FATAL report error: unable to write results: failed to initialize template writer: error parsing template: template: output template:1: unexpected "\" in operand
Desired Behavior
generate report in html format
Actual Behavior
Below error is thrown
2023-11-09T09:18:29.162+0530 FATAL report error: unable to write results: failed to initialize template writer: error parsing template: template: output template:1: unexpected "\" in operand
Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Output Format
Template
Mode
Standalone
Debug Output
Operating System
ubuntu 22.04.3 LTS on WSL
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions