Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

evelikov
Copy link
Collaborator

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 rauc/rauc#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

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 rauc/rauc#1346 and the
example from https://github.com/advanced-security/filter-sarif.

Signed-off-by: Enrico Joerns <[email protected]>
[Emil: port from rauc, use checksums for actions]
Signed-off-by: Emil Velikov <[email protected]>
Copy link

codecov bot commented Nov 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅


🚨 Try these New Features:

@lucasdemarchi
Copy link
Contributor

Applied, thanks

lucasdemarchi pushed a commit that referenced this pull request Nov 19, 2024
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 rauc/rauc#1346 and the
example from https://github.com/advanced-security/filter-sarif.

Signed-off-by: Enrico Joerns <[email protected]>
[Emil: port from rauc, use checksums for actions]
Signed-off-by: Emil Velikov <[email protected]>
Link: #249
Signed-off-by: Lucas De Marchi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants