{{- $url := .Site.Params.cveFeedBucket }} {{- $feed := "" -}} {{- with try (resources.GetRemote $url) }} {{- with .Err -}} {{- if eq hugo.Environment "production" -}} {{- errorf "%s" . -}} {{- else -}} {{- warnf "%s" . -}} {{- end -}} {{- else with .Value -}} {{- $feed = .Content | transform.Unmarshal -}} {{- if ne $feed.version "https://jsonfeed.org/version/1.1" -}} {{- $warningMessage := "CVE feed shortcode. KEP-3203: CVE feed does not comply with JSON feed v1.1." -}} {{- if eq hugo.Environment "production" -}} {{- errorf $warningMessage -}} {{- else -}} {{- warnf $warningMessage -}} {{- end -}} {{- end -}} {{- else -}} {{- $message := printf "Failed to retrieve CVE data from %s (no further error details available)" $url -}} {{- if eq hugo.Environment "production" -}} {{- errorf $message -}} {{- else -}} {{- warnf $message -}} {{- end -}} {{- end -}} {{- end -}} {{ if and (ne $feed nil) (ne (printf "%T" $feed) "string") }}
| {{ T "cve_id" }} | {{ T "cve_summary" }} | {{ T "cve_issue_url" }} |
|---|---|---|
| {{ .id | htmlEscape | safeHTML }} | {{ .summary | htmlEscape | safeHTML }} | #{{ ._kubernetes_io.issue_number }} |