Skip to content

Commit 6f38441

Browse files
author
Robert Clark
authored
Gem Cleanup (#82)
The tests are running on Windows however they are not actually working at the moment, they just always return successfully. Signed-off-by: Robert Clark <rbclark@mitre.org>
1 parent 9de7406 commit 6f38441

File tree

5 files changed

+36
-5
lines changed

5 files changed

+36
-5
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
strategy:
1212
matrix:
1313
platform: [ubuntu-16.04, ubuntu-latest, macos-latest, windows-latest]
14-
ruby: [ 2.5, 2.6, 2.7, 3.0 ]
14+
ruby: [ 2.5, 2.6, 2.7 ]
15+
fail-fast: false
1516
runs-on: ${{ matrix.platform }}
1617

1718
steps:
@@ -31,3 +32,33 @@ jobs:
3132
gem install heimdall_tools*.gem
3233
heimdall_tools help
3334
heimdall_tools version
35+
- name: Test burpsuite mapper
36+
run: |
37+
heimdall_tools burpsuite_mapper -x ./sample_jsons/burpsuite_mapper/sample_input_report/zero.webappsecurity.com.min -o burpsuite_output.json
38+
jq 'del(.version, .platform.release)' burpsuite_output.json > burpsuite_output_jq.json
39+
jq 'del(.version, .platform.release)' ./sample_jsons/burpsuite_mapper/zero.webappsecurity.json > burpsuite_sample.json
40+
diff burpsuite_sample.json burpsuite_output_jq.json
41+
- name: Test jfrog xray mapper
42+
run: |
43+
heimdall_tools jfrog_xray_mapper -j ./sample_jsons/jfrog_xray_mapper/sample_input_report/jfrog_xray_sample.json -o jfrog_output.json
44+
jq 'del(.version, .platform.release)' jfrog_output.json > jfrog_output_jq.json
45+
jq 'del(.version, .platform.release)' ./sample_jsons/jfrog_xray_mapper/jfrog_xray_hdf.json > jfrog_sample.json
46+
diff jfrog_sample.json jfrog_output_jq.json
47+
- name: Test nikto mapper
48+
run: |
49+
heimdall_tools nikto_mapper -j ./sample_jsons/nikto_mapper/sample_input_jsons/zero.webappsecurity.json -o nikto_output.json
50+
jq 'del(.version, .platform.release)' nikto_output.json > nikto_output_jq.json
51+
jq 'del(.version, .platform.release)' ./sample_jsons/nikto_mapper/zero.webappsecurity.json > nikto_sample.json
52+
diff nikto_sample.json nikto_output_jq.json
53+
- name: Test zap mapper webgoat.json
54+
run: |
55+
heimdall_tools zap_mapper -j ./sample_jsons/zap_mapper/sample_input_jsons/webgoat.json -n "http://mymac.com:8191" -o zap_output_webgoat.json
56+
jq 'del(.version, .platform.release)' zap_output_webgoat.json > zap_output_webgoat_jq.json
57+
jq 'del(.version, .platform.release)' ./sample_jsons/zap_mapper/webgoat.json > zap_sample_webgoat.json
58+
diff zap_sample_webgoat.json zap_output_webgoat_jq.json
59+
- name: Test zap mapper zero.webappsecurity.json
60+
run: |
61+
heimdall_tools zap_mapper -j ./sample_jsons/zap_mapper/sample_input_jsons/zero.webappsecurity.json -n "http://zero.webappsecurity.com" -o zap_output.json
62+
jq 'del(.version, .platform.release)' zap_output.json > zap_output_jq.json
63+
jq 'del(.version, .platform.release)' ./sample_jsons/zap_mapper/zero.webappsecurity.json > zap_sample.json
64+
diff zap_sample.json zap_output_jq.json

sample_jsons/burpsuite_mapper/zero.webappsecurity.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

sample_jsons/jfrog_xray_mapper/jfrog_xray_hdf.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

sample_jsons/zap_mapper/webgoat.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

sample_jsons/zap_mapper/zero.webappsecurity.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)