aquasecurity / trivy

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

refactor(secret): add warning about large files #7085

Closed DmitriyLewen closed 2 days ago

DmitriyLewen commented 2 days ago

Description

Show warnings about large files so users can skip them. See https://github.com/aquasecurity/trivy/discussions/7078 for more details.

example:

2024-07-03T12:46:19+06:00       WARN    [secret] The size of the scanned file is too large. It is recommended to use `--skip-files` for this file to avoid high memory consumption.     file_path="fslibs-entry-point.sh" size (MB)=946

Related discussions

Checklist