Skip to content

Commit

Permalink
Add logic to avoid treating an internal include as an advisory (#18641)
Browse files Browse the repository at this point in the history
This works around an empty row at the end of the table where
'internal/advisories.json' looks like an advisory, but isn't.
It also will prevent display of an advisory missing a summary,
description, or date, which would be an error.
  • Loading branch information
mdlinville authored Jun 11, 2024
1 parent 92d404c commit a6039b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/current/advisories/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Users are invited to evaluate advisories and consider the recommended mitigation
<tbody>

{% for advisory in advisories %}
{% if advisory.summary and advisory.affected_versions and advisory.advisory_date %}
<tr>
<td>
<a href="/docs{{ advisory.url }}">{{ advisory.advisory }}</a>
Expand All @@ -38,6 +39,7 @@ Users are invited to evaluate advisories and consider the recommended mitigation
<td>{{ advisory.affected_versions }}</td>
<td>{{ advisory.advisory_date | date: "%B %e, %Y" }}</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>

0 comments on commit a6039b5

Please sign in to comment.