From 43976acfcb07e97ebf26f2ab131ec39bf728bc89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Garc=C3=ADa=20Veytia=20=28Puerco=29?= Date: Sun, 26 Jul 2020 22:37:40 -0500 Subject: [PATCH] [WIP] Add CVE Information to template.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adolfo García Veytia (Puerco) --- pkg/notes/document/template.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkg/notes/document/template.go b/pkg/notes/document/template.go index 51cc86321267..343aaf31e421 100644 --- a/pkg/notes/document/template.go +++ b/pkg/notes/document/template.go @@ -63,6 +63,24 @@ filename | sha512 hash {{- end -}} # Changelog since {{$PreviousRevision}} +{{with .CVEList -}} +## Important Security Information + +This release contains changes that address the following vulnerabilities: +{{range .}} +### {{.Title}} + +{{.Description}} + +__Rating:__ {{.Rating}} — __Score:__ {{.Score}} — __Published:__ {{.Published}} + +{{if .LinkedPRs -}} +Pull Requests: {{range .LinkedPRs}}[#{{print .}}](https://github.com/kubernetes/kubernetes/issues/{{print .}}) {{end}} +{{ end -}} + +{{ end }} +{{- end -}} + {{with .NotesWithActionRequired -}} ## Urgent Upgrade Notes