CloudSploit Scan Comparison

{% if comparison.baseline_timestamp %} Baseline: {{ comparison.baseline_timestamp.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %} {% if comparison.current_timestamp %}  →  Current: {{ comparison.current_timestamp.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %}

Summary

New Issues
{{ comparison.new_findings|length }}
Resolved
{{ comparison.resolved_findings|length }}
Unchanged
{{ comparison.unchanged_findings|length }}
Severity Changed
{{ comparison.severity_changed|length }}
{% set total = comparison.new_findings|length + comparison.resolved_findings|length + comparison.unchanged_findings|length + comparison.severity_changed|length %} {% if total == 0 %}
No findings to compare.
{% endif %} {% macro findings_table(findings) %} {% for f in findings %} {% endfor %}
Status Plugin Category Region Resource Title Message
{{ f.status.value }} {{ f.plugin }} {{ f.category }} {{ f.region }} {% if f.resource %}{{ f.resource }}{% else %}{% endif %} {{ f.title }} {{ f.message }}
{% endmacro %}

New Findings

{% if comparison.new_findings %} {{ findings_table(comparison.new_findings) }} {% else %}
No new findings.
{% endif %}

Resolved Findings

{% if comparison.resolved_findings %} {{ findings_table(comparison.resolved_findings) }} {% else %}
No resolved findings.
{% endif %}

Unchanged Findings

{% if comparison.unchanged_findings %} {{ findings_table(comparison.unchanged_findings) }} {% else %}
No unchanged findings.
{% endif %} {% if comparison.severity_changed %}

Severity Changed

{% for change in comparison.severity_changed %} {% endfor %}
Plugin Category Region Resource Previous Current Title
{{ change.plugin if change.plugin is defined else change.get('plugin', '') }} {{ change.category if change.category is defined else change.get('category', '') }} {{ change.region if change.region is defined else change.get('region', '') }} {{ change.resource if change.resource is defined else change.get('resource', '') }} {{ change.previous_status if change.previous_status is defined else change.get('previous_status', '') }} {{ change.current_status if change.current_status is defined else change.get('current_status', '') }} {{ change.title if change.title is defined else change.get('title', '') }}
{% endif %}