Skip to content

Commit

Permalink
Merge pull request #9 from atanev/main
Browse files Browse the repository at this point in the history
Update severity mapping between trivy and SonarQube
  • Loading branch information
umax authored Jan 22, 2025
2 parents 375a3d6 + e28b1d7 commit 0907fc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions sonarqube.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

LOG_PREFIX = "[trivy][plugins][sonarqube]"
TRIVY_SONARQUBE_SEVERITY = {
"UNKNOWN": "LOW",
"UNKNOWN": "INFO",
"LOW": "LOW",
"MEDIUM": "LOW",
"HIGH": "MEDIUM",
"CRITICAL": "HIGH",
"MEDIUM": "MEDIUM",
"HIGH": "HIGH",
"CRITICAL": "BLOCKER",
}


Expand Down
4 changes: 2 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_file_path_override(self):
'cleanCodeAttribute': 'LOGICAL',
'impacts': [{
'softwareQuality': 'SECURITY',
'severity': 'HIGH'
'severity': 'BLOCKER'
}]
}
],
Expand Down Expand Up @@ -176,7 +176,7 @@ def test_no_file_path_override(self):
'cleanCodeAttribute': 'LOGICAL',
'impacts': [{
'softwareQuality': 'SECURITY',
'severity': 'HIGH'
'severity': 'BLOCKER'
}]
}
],
Expand Down

0 comments on commit 0907fc6

Please sign in to comment.