Skip to content

Commit

Permalink
Add Ubuntu 24.04 to CPE generation (#3585)
Browse files Browse the repository at this point in the history
This is an LTS release shipping next month

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 authored Mar 19, 2024
1 parent ae88e62 commit 099a3e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions providers/os/resources/cpe/platforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ package cpe

import (
"bytes"
"go.mondoo.com/cnquery/v10/utils/stringx"
"regexp"
"strconv"
"text/template"

"go.mondoo.com/cnquery/v10/utils/stringx"
)

type platformCPEEntry struct {
Expand Down Expand Up @@ -146,7 +147,7 @@ var platformCPES = []platformCPEEntry{
{
Platform: "ubuntu",
CPEBuilder: func(platform, version string, workstation bool) (string, error) {
lts := []string{"14.04", "16.04", "18.04", "20.04", "22.04"}
lts := []string{"14.04", "16.04", "18.04", "20.04", "22.04", "24.04"}
swEdition := "*"
isLts := stringx.Contains(lts, version)
if isLts {
Expand Down

0 comments on commit 099a3e9

Please sign in to comment.