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.06k stars 2.28k forks source link

feat: add `log.FilePath()` function for logger #7080

Closed DmitriyLewen closed 3 months ago

DmitriyLewen commented 3 months ago

Description

We often use log.String() with file/filepath/path/etc. key for filepath. Add log.FilePath() function to use a consistent key name.

Checklist