Class CsvConverter
java.lang.Object
com.amazon.inspector.jenkins.amazoninspectorbuildstep.csvconversion.CsvConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertDocker
(String imageName, String imageSha, String buildId, SeverityCounts vulnCounts) convertVulnerabilities
(String imageName, String imageSha, String buildId, SeverityCounts counts) protected String
getCwesAsString
(Vulnerability vulnerability) protected String
getEpssScore
(Vulnerability vulnerability) protected String
getPropertyValueFromKey
(Component component, String key) protected static String
getPropertyValueFromKey
(Vulnerability vulnerability, String key) protected String
getSeverity
(Vulnerability vulnerability) protected String
getUpdated
(Vulnerability vulnerability) void
routeDockerCsvData
(Vulnerability vulnerability, Component component) void
routeVulnCsvData
(Vulnerability vulnerability, Component component) void
-
Constructor Details
-
CsvConverter
-
-
Method Details
-
convertVulnerabilities
public String convertVulnerabilities(String imageName, String imageSha, String buildId, SeverityCounts counts) throws IOException - Throws:
IOException
-
convertDocker
public String convertDocker(String imageName, String imageSha, String buildId, SeverityCounts vulnCounts) throws IOException - Throws:
IOException
-
buildVulnerabilityDataLines
-
buildDockerDataLines
-
routeVulnerabilities
public void routeVulnerabilities() -
routeDockerCsvData
-
routeVulnCsvData
-
getUpdated
-
getCwesAsString
-
getEpssScore
-
getPropertyValueFromKey
-
getPropertyValueFromKey
-
getSeverity
-