Skip to content
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

End Of Life problem calculation #79

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moves problem write
Blaize Kaye committed Apr 16, 2024
commit 5abd2d3bc86f2f5fec214612399cfae916977354
17 changes: 17 additions & 0 deletions internal/handler/insightsParserFilter.go
Original file line number Diff line number Diff line change
@@ -50,6 +50,23 @@ func processSbomInsightsData(h *Messaging, insights InsightsData, v string, apiC
// Process SBOM into facts
facts := processFactsFromSBOM(logger, bom.Components, environment.Id, source)

// Here, before we filter things, we run our facts through EOL data
problemSlice = append(problemSlice, lagoonclient.LagoonProblem{
Id: 0,
Environment: environment.Id,
Identifier: "Testing EOL",
Version: "",
FixedVersion: "",
Source: "",
Service: "",
Data: "",
Severity: "",
SeverityScore: 0,
AssociatedPackage: "",
Description: "",
Links: "",
})

facts, err = KeyFactsFilter(facts)
if err != nil {
return nil, problemSlice, "", err