-
Notifications
You must be signed in to change notification settings - Fork 86
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
enrichers: Load enrichments from jsonblob storage #1166
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1166 +/- ##
==========================================
+ Coverage 52.20% 52.43% +0.22%
==========================================
Files 221 221
Lines 16883 16893 +10
==========================================
+ Hits 8813 8857 +44
+ Misses 7259 7224 -35
- Partials 811 812 +1 ☔ View full report in Codecov by Sentry. |
var ref uuid.UUID | ||
if e.Enrichment != nil { | ||
if ref, err = s.UpdateEnrichments(ctx, e.Updater, e.Fingerprint, e.Enrichment); err != nil { | ||
return fmt.Errorf("updating enrichements: %w", err) | ||
} | ||
} | ||
if e.Vuln != nil { | ||
if ref, err = s.UpdateVulnerabilities(ctx, e.Updater, e.Fingerprint, e.Vuln); err != nil { | ||
return fmt.Errorf("updating vulnerabilities: %w", err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes it technically possible to have both Vulnerabilites and Enrichments in the same UpdateOperation. Nothing in-tree would produce output that way, so I don't think this is a big deal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending rebase
Signed-off-by: J. Victor Martins <[email protected]>
Signed-off-by: J. Victor Martins <[email protected]>
A patch to fix the following BUG:
claircore/libvuln/jsonblob/jsonblob.go
Lines 94 to 96 in faffb8e