You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.
Let's assume that we have a sarif file example.txt where we have two results. One with id java/random-used-once and one with id java/path-injection.
Now let's assume that we are running: filter_sarif.py --input example.txt --output out.txt -- +**/*.java*:java/path-injection
I am expecting that after running this command, only the result with id java/path-injection is shown.
But the outcome of this command is out.txt which is the same as example.txt.
I think that result should be initialized to False if there is at least one positive filter:
Let's assume that we have a sarif file example.txt where we have two results. One with id
java/random-used-once
and one with idjava/path-injection
.Now let's assume that we are running:
filter_sarif.py --input example.txt --output out.txt -- +**/*.java*:java/path-injection
I am expecting that after running this command, only the result with id
java/path-injection
is shown.But the outcome of this command is out.txt which is the same as example.txt.
I think that
result
should be initialized toFalse
if there is at least one positive filter:filter-sarif/filter_sarif.py
Line 14 in 3bb4414
What do you think about it ?
The text was updated successfully, but these errors were encountered: