Skip to content

Commit

Permalink
Align Quay and Docker Scout severities
Browse files Browse the repository at this point in the history
Store Quay's unknown severity as unspecified to align with Docker Scout.
  • Loading branch information
AlexGustafsson committed Dec 29, 2024
1 parent 3d22ac3 commit fd4291d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/workflow/imageworkflow/getquayvulnerabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func GetQuayVulnerabilities() workflow.Step {
for _, feature := range scan.Data.Layer.Features {
for _, vulnerability := range feature.Vulnerabilities {
vulnerabilities = append(vulnerabilities, models.ImageVulnerability{
Severity: strings.ToLower(string(vulnerability.Severity)),
Severity: strings.Replace(strings.ToLower(string(vulnerability.Severity)), "unknown", "unspecified", 1),
Authority: "Quay",
Description: vulnerability.Description,
Links: strings.Split(vulnerability.Link, " "),
Expand Down

0 comments on commit fd4291d

Please sign in to comment.