+ {{template "repo/header" .}} +
+ + + {{if .AlertCounts}} +
+ {{range $sev, $count := .AlertCounts}} +
+ {{$sev}}: {{$count}} +
+ {{end}} +
+ {{end}} + + {{if .SecurityAlerts}} + + + + + + + + + {{if .Permission.IsAdmin}}{{end}} + + + + {{range .SecurityAlerts}} + + + + + + + {{if $.Permission.IsAdmin}} + + {{end}} + + {{end}} + +
{{ctx.Locale.Tr "repo.settings.security_severity"}}{{ctx.Locale.Tr "repo.settings.security_scanner_type"}}{{ctx.Locale.Tr "repo.settings.security_finding"}}{{ctx.Locale.Tr "repo.settings.security_file"}}{{ctx.Locale.Tr "repo.settings.security_status"}}
+ + {{.Severity}} + + {{.Scanner}} + {{.Title}} + {{if .Description}}
{{.Description}}{{end}} +
+ {{if .FilePath}} + + {{.FilePath}}{{if .LineNumber}}:{{.LineNumber}}{{end}} + + {{end}} + + {{if eq .Status "active"}} + Active + {{else if eq .Status "resolved"}} + Resolved + {{else}} + Dismissed + {{end}} + + {{if eq .Status "active"}} +
+ {{$.CsrfTokenHtml}} + + +
+
+ {{$.CsrfTokenHtml}} + + +
+ {{end}} +
+ {{else}} +
+
+

{{svg "octicon-shield-check" 48}}

+

{{ctx.Locale.Tr "repo.settings.security_no_alerts"}}

+
+
+ {{end}} +
+