Added Risk, Remediation and Link to html report

This commit is contained in:
Toni de la Fuente
2021-04-07 18:40:50 +02:00
parent 7bace94e08
commit 574a9c94b0

View File

@@ -31,6 +31,30 @@ addHtmlHeader() {
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/jqc-1.12.4/dt-1.10.21/b-1.6.2/sl-1.3.1/datatables.min.js"></script>
<script>
\$(document).ready(function(){
var maxLength = 30;
\$(".show-read-more").each(function(){
var myStr = \$(this).text();
if(\$.trim(myStr).length > maxLength){
var newStr = myStr.substring(0, maxLength);
var removedStr = myStr.substring(maxLength, \$.trim(myStr).length);
\$(this).empty().html(newStr);
\$(this).append(' <a href="javascript:void(0);" class="read-more">read more...</a>');
\$(this).append('<span class="more-text">' + removedStr + '</span>');
}
});
\$(".read-more").click(function(){
\$(this).siblings(".more-text").contents().unwrap();
\$(this).remove();
});
});
</script>
<style>
.show-read-more .more-text{
display: none;
}
</style>
<title>Prowler - AWS Security Assesments</title>
</head>
<body>
@@ -65,6 +89,7 @@ addHtmlHeader() {
</ul>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header">
@@ -88,7 +113,6 @@ addHtmlHeader() {
</li>
</ul>
</div>
* Sortable columns are CheckID (default) and Result
</div>
</div>
<div class="row mt-3">
@@ -106,6 +130,10 @@ addHtmlHeader() {
<th scope="col">CheckID</th>
<th style="width:40%" scope="col">Check Title</th>
<th style="width:40%" scope="col">Check Output</th>
<th scope="col">CAF Epic</th>
<th style="width:40%" scope="col">Risk</th>
<th style="width:40%" scope="col">Remediation</th>
<th style="width:40%" scope="col">Link to doc</th>
</tr>
</thead>
<tbody>