aquasecurity / trivy

Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
https://aquasecurity.github.io/trivy
Apache License 2.0
23.1k stars 2.28k forks source link

bug(secret): set limit for line length #6999

Closed DmitriyLewen closed 2 months ago

DmitriyLewen commented 3 months ago

Description

We show line with secret (also line before and after it) in report. But there are cases when this line is very long (see #6980). In this case we will show very large output.

So we need to set maximum line length for secrets or set limit on output shown.

Discussed in https://github.com/aquasecurity/trivy/discussions/6980

knqyf263 commented 2 months ago

I assigned this task to @afdesk. It would be appreciated if @DmitriyLewen assists him.