-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
Count per affected host #455
Comments
You can create a custom filter based on finding affected scope and us the already created custom filter count (which count findings by severity). This filter might works : // Keep finding based on a given scope
// Example: {findings | scope: '<p>127.0.0.1</p>'}
// Example 2: {findings | scope: '<p>127.0.0.1</p><p>localhost</p>'}
expressions.filters.scope = function(input, scope) {
if(!input) return input;
var output = [];
for(var i = 0; i < input.length; i++){
if(input[i].scope === scope){
output.push(input[i]);
}
}
return output;
} Usage : Also, you should be able to iterate over the filter : Note that |
Hello, I am looking for a way or workaround to count number of vulnerability based on severity per affected host and display as a summary table in report.
The text was updated successfully, but these errors were encountered: