Skip to content

Commit bc0d1a8

Browse files
Added test for XCCDF results output
Signed-off-by: zacharylc-mitre <[email protected]>
1 parent 63e7190 commit bc0d1a8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ jobs:
5656
jq 'del(.version, .platform.release)' sarif_output.json > sarif_output_jq.json
5757
jq 'del(.version, .platform.release)' ./sample_jsons/sarif_mapper/sarif_output.json > sarif_sample.json
5858
diff sarif_sample.json sarif_output_jq.json
59+
- name: Test xccdf mapper
60+
run: |
61+
heimdall_tools xccdf_mapper -x ./sample_jsons/xccdf_mapper/sample_input_report/xccdf-results.xml -o xccdf_output.json
62+
jq 'del(.version, .platform.release)' xccdf_output.json > xccdf_output_jq.json
63+
jq 'del(.version, .platform.release)' ./sample_jsons/xccdf_mapper/xccdf-hdf.json > xccdf_sample.json
64+
diff xccdf_sample.json xccdf_output_jq.json
5965
- name: Test zap mapper webgoat.json
6066
run: |
6167
heimdall_tools zap_mapper -j ./sample_jsons/zap_mapper/sample_input_jsons/webgoat.json -n "http://mymac.com:8191" -o zap_output_webgoat.json

0 commit comments

Comments
 (0)