diff --git a/infrastructure/code/template/details.html b/infrastructure/code/template/details.html index be457ab7b..2e847948e 100644 --- a/infrastructure/code/template/details.html +++ b/infrastructure/code/template/details.html @@ -719,7 +719,7 @@

{{.IssueTitle}}

{{if gt (len .CWEs) 0}} | {{range $index, $cwe := .CWEs}} - {{$cwe}} {{if ne $index (idxMinusOne (len $.CWEs))}}{{end}} {{end}} @@ -739,7 +739,7 @@

{{.IssueTitle}}

{{.LessonIcon}}
- + Learn about this vulnerability {{.ExternalIcon}} @@ -782,7 +782,7 @@

{{.IssueTitle}}

Ignores are currently managed in the Snyk web app. To edit or remove the ignore please go to: - {{.SnykWebUrl}}.
@@ -938,7 +938,7 @@

Fixed Code Examples

{{.GitHubIcon}} - {{(index .ExampleCommitFixes 0).RepoName}} diff --git a/infrastructure/iac/iac_html_test.go b/infrastructure/iac/iac_html_test.go index eba012b7d..995707870 100644 --- a/infrastructure/iac/iac_html_test.go +++ b/infrastructure/iac/iac_html_test.go @@ -38,8 +38,8 @@ func Test_IaC_Html_getIacHtml(t *testing.T) { assert.Contains(t, iacPanelHtml, `
`, "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 }}