mirror of
https://github.com/Dvorinka/Devour.git
synced 2026-06-03 20:13:03 +00:00
i dont like commits
This commit is contained in:
@@ -76,6 +76,23 @@ func (s *Scanner) Scan(ctx context.Context) (*ScanResult, error) {
|
||||
findings, err := s.runDetectorSafely(ctx, detector, name)
|
||||
if err != nil {
|
||||
log.Printf("Detector %s failed: %v", name, err)
|
||||
allFindings = append(allFindings, Finding{
|
||||
ID: fmt.Sprintf("detector_error::%s", name),
|
||||
Type: "detector_error",
|
||||
Title: fmt.Sprintf("Detector failed: %s", name),
|
||||
Description: fmt.Sprintf("Detector %s failed during scan: %v", name, err),
|
||||
File: s.config.Path,
|
||||
Line: 1,
|
||||
Severity: SeverityT2,
|
||||
Score: 0,
|
||||
Status: StatusOpen,
|
||||
Metadata: map[string]string{
|
||||
"detector": name,
|
||||
"error": err.Error(),
|
||||
},
|
||||
CreatedAt: time.Now(),
|
||||
UpdatedAt: time.Now(),
|
||||
})
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user