From 0b2f257d7a5c2a881c36c23f8ae3cd5e89db593a Mon Sep 17 00:00:00 2001 From: Johnny Bieren Date: Wed, 12 Feb 2025 09:50:21 -0500 Subject: [PATCH] feat(RELEASE-1353): add severity to advisory template (#369) This commit adds severity to the advisory template so that we can start adding it to our advisories. It is in an if statement as only certain types of advisories should have it set. Signed-off-by: Johnny Bieren --- templates/advisory.yaml.jinja | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/advisory.yaml.jinja b/templates/advisory.yaml.jinja index 127c57e..80982d8 100644 --- a/templates/advisory.yaml.jinja +++ b/templates/advisory.yaml.jinja @@ -11,6 +11,9 @@ spec: product_stream: {{ advisory.spec.product_stream }} cpe: {{ advisory.spec.cpe }} type: {{ advisory.spec.type }} +{%- if 'severity' in advisory.spec %} + severity: {{ advisory.spec.severity }} +{%- endif %} {%- if 'issues' in advisory.spec %} issues: {{ advisory.spec.issues | to_nice_yaml(indent=2) | indent(4) | trim }}