Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 8025b91

Browse files
committed
Add some more clarifing comments
1 parent e258aaf commit 8025b91

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

integrations/ssh_scan/parser/parser.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ const policyViolationFindingRules = [
7979
}
8080
];
8181

82+
/**
83+
* Creating the actual secureCodeBox Finding from the template from the policyViolationFindingRule and the SSH_Scan recomendation string
84+
*/
8285
function createPolicyViolationFinding({
8386
name,
8487
description,
@@ -106,6 +109,7 @@ function createPolicyViolationFinding({
106109

107110
/**
108111
* Transforms a recommendation string from the Mozilla SSH_Scan Tools into a SSH Policy Violation Findings
112+
*
109113
* @param {string} recommendation
110114
*/
111115
function transformRecommendationToFinding(
@@ -124,6 +128,9 @@ function transformRecommendationToFinding(
124128
}
125129
}
126130

131+
/**
132+
* Convert the SSH_Scan file / json into secureCodeBox Findings
133+
*/
127134
async function parse(fileContent) {
128135
const hosts = fileContent;
129136

0 commit comments

Comments
 (0)