feat: add --distro
flag to manually specify OS distribution for vulnerability scanning
#8065
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
scan/sbom
Issues relating to SBOM
scan/vulnerability
Issues relating to vulnerability scanning
Milestone
Background
Currently, Trivy automatically detects the OS during container image scanning and performs vulnerability detection based on that OS. However, there are use cases where manual OS specification would be beneficial.
Use Cases
Some patches might be available in different versions but not in the current version like this case.
Example:
Some images remove
/etc/os-release
for size optimization.Example:
RPM archive scanning doesn't provide OS information.
Example:
Proposal
Add a new
--distro
flag to manually specify OS information. When this flag is provided, it will override any automatically detected OS information.Expected Format
Implementation Notes
Discussed in #8056
The text was updated successfully, but these errors were encountered: