Skip to content

Commit 88cfe93

Browse files
committed
fix for #24
1 parent 65248a6 commit 88cfe93

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

src/codeaudit/ci_workflowscan.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,6 @@
1717
from codeaudit.api_interfaces import filescan
1818
from codeaudit.dashboard_reports import SAST_REPORT_CSS
1919

20-
# PYTHON_CODE_AUDIT_TEXT = '<a href="https://github.com/nocomplexity/codeaudit" target="_blank"><b>Python Code Audit</b></a>'
21-
# DISCLAIMER_TEXT = (
22-
# '<div class="sast-report"><p><b>Disclaimer:</b> <i>This SAST tool '
23-
# + PYTHON_CODE_AUDIT_TEXT
24-
# + " provides a powerful, automatic security analysis for Python source code. However, it's not a substitute for human review in combination with business knowledge. Undetected vulnerabilities may still exist.</i></p></div>"
25-
# )
26-
27-
NOSEC_WARNING = '<div class="sast-report"><p><b>INFO</b>: The --nosec flag is active. Security findings with in-line suppressions will be excluded from the report.</p></div>'
28-
29-
# HTML_FOOTER = (
30-
# '<div class="sast-report"><p><hr>'
31-
# + 'Check the <a href="https://nocomplexity.com/documents/codeaudit/intro.html" '
32-
# + 'target="_blank">documentation</a> for help on found issues.<br>'
33-
# + "</p></div>"
34-
# )
35-
3620

3721
def ci_scan(input_path, output="text", nosec=True):
3822
"""Basic SAST scan to be used in CI workflows
@@ -51,8 +35,6 @@ def ci_scan(input_path, output="text", nosec=True):
5135
print(result)
5236
elif output == "html":
5337
result, security_status = report_result_html(scanresult)
54-
# if nosec:
55-
# result = NOSEC_WARNING + result
5638
print(result)
5739
elif output == "json":
5840
result, security_status = report_result_json(scanresult)
@@ -279,7 +261,4 @@ def safe_line(x):
279261
html += "</tbody></table>"
280262
html += "</details><br>"
281263
html += "</div>"
282-
# html += DISCLAIMER_TEXT
283-
# html += HTML_FOOTER
284-
285264
return html, 1

0 commit comments

Comments
 (0)