kmod-project / kmod

kmod - Linux kernel module handling
GNU Lesser General Public License v2.1
50 stars 39 forks source link

ci/codeql: use filter-sarif to filter meson-private #249

Closed evelikov closed 1 week ago

evelikov commented 1 week ago

There is a severe number of false-positive in code scanning caused by inspecting meson-internal test files like 'build/meson-private/tmpzb46osmq/testfile.c'.

As a workaround, use the 'filter-sarif' action to filter out these results before uploading the SARIF (Static Analysis Results Interchange Format).

This PR was inspired by https://github.com/rauc/rauc/pull/1346 and the example from https://github.com/advanced-security/filter-sarif.


At a glance this will remove ~35 or around half of the reports \o/

NOTE: there is a "path-ignore" option for the scanner itself, although it seems to be language specific - see their issue 1583

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:


🚨 Try these New Features:

lucasdemarchi commented 1 week ago

Applied, thanks