Skip to content

Commit

Permalink
fix: mapping of critical oss issues [HEAD-986] (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSchafer authored Nov 6, 2023
1 parent 36e5ff3 commit 8d9bce5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infrastructure/oss/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
)

var issuesSeverity = map[string]snyk.Severity{
"critical": snyk.High,
"critical": snyk.Critical,
"high": snyk.High,
"low": snyk.Low,
"medium": snyk.Medium,
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/oss/oss_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (
func Test_toIssueSeverity(t *testing.T) {
testutil.UnitTest(t)
issue := ossIssue{Severity: "critical"}
assert.Equal(t, snyk.High, issue.ToIssueSeverity())
assert.Equal(t, snyk.Critical, issue.ToIssueSeverity())
issue = ossIssue{Severity: "high"}
assert.Equal(t, snyk.High, issue.ToIssueSeverity())
issue = ossIssue{Severity: "medium"}
Expand Down

0 comments on commit 8d9bce5

Please sign in to comment.