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
info!("No vulnerabilities meet minimum severity requirement of '{}'", min_severity);
235
246
returnfalse;
236
247
}
237
248
}
238
249
239
250
// Check repository filter
240
251
ifletSome(repos) = &filters.repositories{
241
252
if !repos.contains(&result.repository){
253
+
info!("Repository '{}' not in notification filter list", result.repository);
242
254
returnfalse;
243
255
}
244
256
}
245
257
246
-
// Check if there are any vulnerabilities
247
-
if result.vulnerabilities.is_empty(){
248
-
returnfalse;
249
-
}
250
-
251
-
// If only_new_vulnerabilities is true, we'd need to compare with previous scan
252
-
// For now, we'll treat all vulnerabilities as "new" since we don't have persistent storage yet
258
+
// For only_new_vulnerabilities filter:
259
+
// If we don't have persistent storage to compare against previous scans,
260
+
// we'll be more lenient and allow notifications for significant findings
253
261
if filters.only_new_vulnerabilities{
254
262
// Note: In a full implementation, this would compare against stored previous scan results
255
-
// from a database. For now, we consider all vulnerabilities as potentially new.
256
-
if result.vulnerabilities.is_empty(){
257
-
returnfalse;
258
-
}
263
+
// For now, we'll allow notifications if there are any vulnerabilities, since we can't
264
+
// reliably determine what's "new" without persistent storage
265
+
info!("only_new_vulnerabilities=true, but no previous scan data available. Allowing notification for {} vulnerabilities.", result.vulnerabilities.len());
0 commit comments