Skip to content

Commit

Permalink
feat(RELEASE-1353): add severity to advisory template (#369)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
johnbieren authored Feb 12, 2025
1 parent 4c2a843 commit 0b2f257
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/advisory.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 0b2f257

Please sign in to comment.