]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-check: add coverage statistics on recipes with/without CVEs
authorMarta Rybczynska <rybczynska@gmail.com>
Tue, 29 Mar 2022 12:54:32 +0000 (14:54 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Mar 2022 12:07:38 +0000 (13:07 +0100)
commitd1849a1facd64fa0bcf8336a0ed5fbf71b2e3cb5
tree5d9406e23d710a59b122884a1793428c9852699b
parentdf567de36ae5964bee433ebb97e8bf702034994a
cve-check: add coverage statistics on recipes with/without CVEs

Until now the CVE checker was giving information about CVEs found for
a product (or more products) contained in a recipe. However, there was
no easy way to find out which products or recipes have no CVEs. Having
no reported CVEs might mean there are simply none, but can also mean
a product name (CPE) mismatch.

This patch adds CVE_CHECK_COVERAGE option enabling a new type of
statistics. Then we use the new JSON format to report the information.
The legacy text mode report does not contain it.

This option is expected to help with an identification of recipes with
mismatched CPEs, issues in the database and more.

This work is based on [1], but adding the JSON format makes it easier
to implement, without additional result files.

[1] https://lists.openembedded.org/g/openembedded-core/message/159873

Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes/cve-check.bbclass