`, "HTML should contain the severity icon container")
// Reference section
- assert.Contains(t, iacPanelHtml, `
https://kubernetes.io/docs/reference/access-authn-authz/rbac/`, "HTML should contain the first reference")
- assert.Contains(t, iacPanelHtml, `
https://kubernetes.io/docs/reference/access-authn-authz/rbac/#role-and-clusterrole`, "HTML should contain the second reference")
+ assert.Contains(t, iacPanelHtml, `
https://kubernetes.io/docs/reference/access-authn-authz/rbac/`, "HTML should contain the first reference")
+ assert.Contains(t, iacPanelHtml, `
https://kubernetes.io/docs/reference/access-authn-authz/rbac/#role-and-clusterrole`, "HTML should contain the second reference")
}
func createIacIssueSample() snyk.Issue {
diff --git a/infrastructure/iac/template/index.html b/infrastructure/iac/template/index.html
index 94298ecf7..22fb154ec 100644
--- a/infrastructure/iac/template/index.html
+++ b/infrastructure/iac/template/index.html
@@ -45,7 +45,7 @@
{{.Issue.AdditionalData.Title}}
Issue
-
{{.Issue.ID}}
@@ -78,7 +78,7 @@ Remediation
References
{{range .Issue.AdditionalData.References}}
-
{{.}}
+
{{.}}
{{end}}
diff --git a/infrastructure/oss/template/details.html b/infrastructure/oss/template/details.html
index 994ff80a2..f85d3ac2e 100644
--- a/infrastructure/oss/template/details.html
+++ b/infrastructure/oss/template/details.html
@@ -175,7 +175,7 @@
{{if gt (len .CVEs) 0}}
{{range $index, $cve := .CVEs}}
-
{{$cve}}
{{if ne $index (idxMinusOne (len $.CVEs))}}
{{end}}
{{end}}
@@ -184,7 +184,7 @@
{{if gt (len .CWEs) 0}}
{{range $index, $cwe := .CWEs}}
-
{{$cwe}}
{{if ne $index (idxMinusOne (len $.CWEs))}}
{{end}}
{{end}}
@@ -192,11 +192,11 @@
{{if gt (len .CvssScore) 0}}
-
CVSS {{.CvssScore}}
+
CVSS {{.CvssScore}}
{{end}}
-
{{.IssueId}}
{{ if .LessonUrl }}