Skip to content

Commit 6b4cebe

Browse files
authored
fix(os): add mapping OS aliases (#8466)
1 parent af1ea64 commit 6b4cebe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/fanal/types/const.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,16 @@ const (
4444
)
4545

4646
// OSTypeAliases is a map of aliases for operating systems.
47-
// This is used to map the old family names to the new ones for backward compatibility.
4847
var OSTypeAliases = map[OSType]OSType{
48+
// This is used to map the old family names to the new ones for backward compatibility.
4949
"opensuse.leap": OpenSUSELeap,
5050
"opensuse.tumbleweed": OpenSUSETumbleweed,
5151
"suse linux enterprise micro": SLEMicro,
5252
"suse linux enterprise server": SLES,
53+
// This is used to map OS names in EKS
54+
"amazon linux": Amazon,
55+
// This is used to map OS names in Kind
56+
"debian gnu/linux": Debian,
5357
}
5458

5559
// Programming language dependencies

0 commit comments

Comments
 (0)