diff --git a/grype/db/v6/data.go b/grype/db/v6/data.go index 29019c7fdea..7fe2ef5d870 100644 --- a/grype/db/v6/data.go +++ b/grype/db/v6/data.go @@ -40,6 +40,7 @@ func KnownOperatingSystemSpecifierOverrides() []OperatingSystemSpecifierOverride {Alias: "alpine", VersionPattern: `.*_alpha.*`, ReplacementLabelVersion: strRef("edge"), Rolling: true}, {Alias: "wolfi", Rolling: true}, {Alias: "chainguard", Rolling: true}, + {Alias: "secureos", Rolling: true}, // others {Alias: "archlinux", Rolling: true}, diff --git a/grype/distro/distro_test.go b/grype/distro/distro_test.go index 985234e6224..1f9adaede12 100644 --- a/grype/distro/distro_test.go +++ b/grype/distro/distro_test.go @@ -471,6 +471,11 @@ func Test_NewDistroFromRelease_Coverage(t *testing.T) { Type: Scientific, Version: "6.10", }, + { + Name: "test-fixtures/os/secureos", + Type: SecureOS, + Version: "2025.09.09", + }, } for _, tt := range tests { diff --git a/grype/distro/test-fixtures/os/secureos/etc/os-release b/grype/distro/test-fixtures/os/secureos/etc/os-release new file mode 100644 index 00000000000..a4ca528bdfd --- /dev/null +++ b/grype/distro/test-fixtures/os/secureos/etc/os-release @@ -0,0 +1,5 @@ +ID=secureos +NAME="SecureOS" +PRETTY_NAME="SecureOS (SecureBuild)" +VERSION_ID="2025.09.09" +HOME_URL="https://securebuild.com/" diff --git a/grype/distro/type.go b/grype/distro/type.go index f5bc039647e..9904123df57 100644 --- a/grype/distro/type.go +++ b/grype/distro/type.go @@ -35,6 +35,7 @@ const ( MinimOS Type = "minimos" Raspbian Type = "raspbian" Scientific Type = "scientific" + SecureOS Type = "secureos" ) // All contains all Linux distribution options @@ -64,6 +65,7 @@ var All = []Type{ MinimOS, Raspbian, Scientific, + SecureOS, } // IDMapping maps a distro ID from the /etc/os-release (e.g. like "ubuntu") to a Distro type. @@ -92,6 +94,7 @@ var IDMapping = map[string]Type{ "minimos": MinimOS, "raspbian": Raspbian, "scientific": Scientific, + "secureos": SecureOS, } // aliasTypes maps common aliases to their corresponding Type.