Skip to content

Commit

Permalink
feat(RELEASE-1353): add severity to advisory template
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 committed Feb 7, 2025
1 parent 40e0a29 commit 2aebfde
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 %}
type: {{ 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 2aebfde

Please sign in to comment.