Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scanning/disa-alignment/anaconda.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@
# Compare ARFs and report results from output
shared.compare_arfs('ssg-arf.xml', 'disa-arf.xml')

results.report_and_exit(logs=['ssg-report.html', 'disa-report.html'])
logs = ['ssg-report.html', 'disa-report.html']
if results.global_counts['fail'] or results.global_counts['error']:
logs += ['ssg-arf.xml', 'disa-arf.xml']
results.report_and_exit(logs=logs)
5 changes: 4 additions & 1 deletion scanning/disa-alignment/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@
# Compare ARFs and report results from output
shared.compare_arfs('ssg-arf.xml', 'disa-arf.xml')

results.report_and_exit(logs=['ssg-report.html', 'disa-report.html'])
logs = ['ssg-report.html', 'disa-report.html']
if results.global_counts['fail'] or results.global_counts['error']:
logs += ['ssg-arf.xml', 'disa-arf.xml']
results.report_and_exit(logs=logs)
5 changes: 4 additions & 1 deletion scanning/disa-alignment/oscap.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@
# Compare ARFs and report results from output
shared.compare_arfs('ssg-arf.xml', 'disa-arf.xml')

results.report_and_exit(logs=['ssg-report.html', 'disa-report.html'])
logs = ['ssg-report.html', 'disa-report.html']
if results.global_counts['fail'] or results.global_counts['error']:
logs += ['ssg-arf.xml', 'disa-arf.xml']
results.report_and_exit(logs=logs)
Loading