fatihtokus / scan2html

A Trivy plugin that scans and outputs the results (vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more) to an interactive html file.
Apache License 2.0
28 stars 4 forks source link

Exit code is not capturing properly #53

Closed prasenjitsh closed 1 month ago

prasenjitsh commented 1 month ago

Hi Team,

exit code is not getting capture properly:

trivy scan2html rootfs --exit-code 1 . --scanners vuln --severity CRITICAL,HIGH,MEDIUM test.html echo $? the above code is printing 0 trivy rootfs --exit-code 1 . --scanners vuln --severity CRITICAL,HIGH,MEDIUM echo $? the above code is printing 1

fatihtokus commented 1 month ago

Hi @prasenjitsh ,

Thanks for reporting this, we will investigate and revert back to you soon.

Regards, Fatih

fatihtokus commented 1 month ago

Hi @prasenjitsh ,

Your issue has been addressed in the latest release. Could you please give us a star for support? Let us know if there is any other issues or feature request.

Regards, Fatih

prasenjitsh commented 1 month ago

Thanks. It's working as expected.

fatihtokus commented 1 month ago

Could you please give us a star?

Screenshot 2024-06-06 at 15 53 41