Skip to content

Commit 57dbbd1

Browse files
committed
changed startLine and endLine to keep descriptions consistent with past imports
1 parent 669237f commit 57dbbd1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dojo/tools/aws_inspector2/parser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ def get_code_vulnerability(self, finding: Finding, raw_finding: dict) -> Finding
182182
finding.sast_source_file_path = f"{file_path}{file_name}"
183183
finding.line = start_line
184184
finding.sast_source_line = start_line
185+
if start_line is None:
186+
start_line = "N/A"
187+
if end_line is None:
188+
end_line = "N/A"
185189
finding.description += (
186190
"\n**Additional info**\n"
187191
f"CWEs: {string_cwes}\n"

0 commit comments

Comments
 (0)