summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorCedric DOURLENT <cedric.dourlent@softathome.com>2024-03-01 16:42:34 +0100
committerCedric DOURLENT <cedric.dourlent@softathome.com>2024-03-01 16:42:34 +0100
commit84331215e57090a9cdae4af75af2539c39cd7de7 (patch)
tree6c64b78457322e754127ef9a04cf121308580a9a /scripts
parenta86ff06d2e26cac388581b75b574bc5a9237c417 (diff)
downloadopenwrt-84331215e57090a9cdae4af75af2539c39cd7de7.tar.gz
openwrt-84331215e57090a9cdae4af75af2539c39cd7de7.tar.bz2
openwrt-84331215e57090a9cdae4af75af2539c39cd7de7.zip
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package-metadata.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/package-metadata.pl b/scripts/package-metadata.pl
index 9e0e6dd9e5..a46f819ab5 100755
--- a/scripts/package-metadata.pl
+++ b/scripts/package-metadata.pl
@@ -677,6 +677,7 @@ sub gen_image_cyclonedxsbom() {
license => "GPL-2.0",
cpe_id => "cpe:/o:linux:linux_kernel",
name => "kernel",
+ category => "operating-system",
};
my %abimap;
@@ -705,6 +706,7 @@ sub gen_image_cyclonedxsbom() {
if ($pkg->{category}) {
my $category = $pkg->{category};
my %cat_type = (
+ "operating-system" => "operating-system",
"Firmware" => "firmware",
"Libraries" => "library"
);