trivy
trivy copied to clipboard
refactor: disable vuln analyzers when --security-checks != vuln
Description
Trivy always parses language and lock files, but doesn't result to report if --security-checks != vuln. But it wastes time and resources.
Added disabling analyzers for these files when --security-checks != vuln
Checklist
- [x] I've read the guidelines for contributing to this repository.
- [x] I've followed the conventions in the PR title.
- [ ] I've added tests that prove my fix is effective or that my feature works.
- [ ] I've updated the documentation with the relevant information (if needed).
- [ ] I've added usage information (if the PR introduces new options)
- [ ] I've included a "before" and "after" example to the description (if the PR is a user interface change).