Skip to content

Conversation

@jdolitsky
Copy link
Contributor

No description provided.

@jdolitsky jdolitsky requested review from luhring and pdeslaur June 16, 2025 21:17
Comment on lines +259 to +276
for _, vuln := range testCase.OptionalVulnerabilities {
isOptional := true

// Check if any ID in this vulnerability pair is in the OSV feed
for _, id := range vuln {
if osvVulns[id] {
// If it's in the OSV feed with fixed versions, it's not optional
isOptional = false
break
}
}

if isOptional {
stillOptional = append(stillOptional, vuln)
} else {
notOptional = append(notOptional, vuln)
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is core of the optional vs. non-optional logic

Signed-off-by: Josh Dolitsky <[email protected]>
@jdolitsky jdolitsky force-pushed the go-based-answers-gen branch from 75f6766 to 98253ec Compare June 16, 2025 21:50
@jdolitsky jdolitsky marked this pull request as draft June 17, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants