mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
build: fix kernel component in CycloneDX SBOM
As stated in the cycloneDX documentation, the field "type" is mandatory for all components. More details here (https://cyclonedx.org/docs/1.5/json/#components_items_type) Signed-off-by: Cedric DOURLENT <cedric.dourlent@softathome.com> (cherry picked from commit 84331215e57090a9cdae4af75af2539c39cd7de7)
This commit is contained in:
parent
5cae98c25d
commit
340e3dc453
@ -675,6 +675,7 @@ sub gen_image_cyclonedxsbom() {
|
|||||||
license => "GPL-2.0",
|
license => "GPL-2.0",
|
||||||
cpe_id => "cpe:/o:linux:linux_kernel",
|
cpe_id => "cpe:/o:linux:linux_kernel",
|
||||||
name => "kernel",
|
name => "kernel",
|
||||||
|
category => "operating-system",
|
||||||
};
|
};
|
||||||
|
|
||||||
my %abimap;
|
my %abimap;
|
||||||
@ -703,6 +704,7 @@ sub gen_image_cyclonedxsbom() {
|
|||||||
if ($pkg->{category}) {
|
if ($pkg->{category}) {
|
||||||
my $category = $pkg->{category};
|
my $category = $pkg->{category};
|
||||||
my %cat_type = (
|
my %cat_type = (
|
||||||
|
"operating-system" => "operating-system",
|
||||||
"Firmware" => "firmware",
|
"Firmware" => "firmware",
|
||||||
"Libraries" => "library"
|
"Libraries" => "library"
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user