@@ -27,12 +27,14 @@ const (
2727 notApplicableLowSeveritySource ImageSource = "v2/notApplicableLow.png"
2828 unknownSeveritySource ImageSource = "v2/applicableUnknownSeverity.png"
2929 notApplicableUnknownSeveritySource ImageSource = "v2/notApplicableUnknown.png"
30+ noIssuesSource ImageSource = "v2/noIssues.png"
3031
3132 smallCriticalSeveritySource ImageSource = "v2/smallCritical.svg"
3233 smallHighSeveritySource ImageSource = "v2/smallHigh.svg"
3334 smallMediumSeveritySource ImageSource = "v2/smallMedium.svg"
3435 smallLowSeveritySource ImageSource = "v2/smallLow.svg"
3536 smallUnknownSeveritySource ImageSource = "v2/smallUnknown.svg"
37+ smallNoIssuesSource ImageSource = "v2/smallNoIssues.svg"
3638)
3739
3840func getSeverityTag (iconName IconName , applicability string ) string {
@@ -56,6 +58,8 @@ func getNotApplicableIconTags(iconName IconName) string {
5658 return GetIconTag (notApplicableMediumSeveritySource , "medium (not applicable)" ) + "<br>"
5759 case "low" :
5860 return GetIconTag (notApplicableLowSeveritySource , "low (not applicable)" ) + "<br>"
61+ case "scanned - no issues" :
62+ return GetIconTag (noIssuesSource , "scanned - no issues found" ) + "<br>"
5963 }
6064 return GetIconTag (notApplicableUnknownSeveritySource , "unknown (not applicable)" ) + "<br>"
6165}
@@ -70,6 +74,8 @@ func getApplicableIconTags(iconName IconName) string {
7074 return GetIconTag (mediumSeveritySource , "medium" ) + "<br>"
7175 case "low" :
7276 return GetIconTag (lowSeveritySource , "low" ) + "<br>"
77+ case "scanned - no issues" :
78+ return GetIconTag (noIssuesSource , "scanned - no issues found" ) + "<br>"
7379 }
7480 return GetIconTag (unknownSeveritySource , "unknown" ) + "<br>"
7581}
@@ -84,6 +90,8 @@ func getSmallApplicableIconTags(iconName IconName) string {
8490 return GetImgTag (smallMediumSeveritySource , "" )
8591 case "low" :
8692 return GetImgTag (smallLowSeveritySource , "" )
93+ case "scanned - no issues" :
94+ return GetImgTag (smallNoIssuesSource , "" )
8795 }
8896 return GetImgTag (smallUnknownSeveritySource , "" )
8997}
0 commit comments