Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions grype/db/v6/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
5 changes: 5 additions & 0 deletions grype/distro/distro_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 5 additions & 0 deletions grype/distro/test-fixtures/os/secureos/etc/os-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ID=secureos
NAME="SecureOS"
PRETTY_NAME="SecureOS (SecureBuild)"
VERSION_ID="2025.09.09"
HOME_URL="https://securebuild.com/"
3 changes: 3 additions & 0 deletions grype/distro/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const (
MinimOS Type = "minimos"
Raspbian Type = "raspbian"
Scientific Type = "scientific"
SecureOS Type = "secureos"
)

// All contains all Linux distribution options
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Loading