mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-05 20:40:16 -08:00
fix(os): add mapping OS aliases (#8466)
This commit is contained in:
@@ -44,12 +44,16 @@ const (
|
||||
)
|
||||
|
||||
// OSTypeAliases is a map of aliases for operating systems.
|
||||
// This is used to map the old family names to the new ones for backward compatibility.
|
||||
var OSTypeAliases = map[OSType]OSType{
|
||||
// This is used to map the old family names to the new ones for backward compatibility.
|
||||
"opensuse.leap": OpenSUSELeap,
|
||||
"opensuse.tumbleweed": OpenSUSETumbleweed,
|
||||
"suse linux enterprise micro": SLEMicro,
|
||||
"suse linux enterprise server": SLES,
|
||||
// This is used to map OS names in EKS
|
||||
"amazon linux": Amazon,
|
||||
// This is used to map OS names in Kind
|
||||
"debian gnu/linux": Debian,
|
||||
}
|
||||
|
||||
// Programming language dependencies
|
||||
|
||||
Reference in New Issue
Block a user