Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.
Python agentsai-hackingai-penetration-testingai-pentestingai-securityartificial-intelligencebug-bountycode-qualityctf-toolscybersecuritycybersecurity-toolsethical-hackinghackingllm-securityoffensive-securitypenetration-testingpentesting-toolsred-teamingsecuritysecurity-automation
fix(report): correct csv_path indentation in write_vulnerabilities (#637)
Alex Schapiroe6ca4d2be6a9
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex ab2b5563..b201051b 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -11,7 +11,7 @@ repos:# MyPy for static type checking- repo: https://github.com/pre-commit/mirrors-mypy- rev: v1.16.0+ rev: v1.17.1hooks:- id: mypyadditional_dependencies: [diff --git a/strix/report/writer.py b/strix/report/writer.pyindex 27ed3794..a7db1621 100644--- a/strix/report/writer.py+++ b/strix/report/writer.py@@ -69,7 +69,7 @@ def write_vulnerabilities(vulnerability_reports,key=lambda r: (_SEVERITY_ORDER.get(r["severity"], 5), r["timestamp"]),)- csv_path = run_dir / "vulnerabilities.csv"+ csv_path = run_dir / "vulnerabilities.csv"csv_buf = io.StringIO()fieldnames = ["id", "title", "severity", "timestamp", "file"]csv_writer = csv.DictWriter(csv_buf, fieldnames=fieldnames, lineterminator="\r\n")