autofix icon indicating copy to clipboard operation
autofix copied to clipboard

Results.json missing

Open JithukrishnanV opened this issue 2 years ago • 2 comments

When I run autofix.py, I get a results.json not found error, and if I create the file, the code deletes the file when it is running.

autofix

And If I comment the code to remove the file, I'm getting this. Am I doing anything wrong here?

image

JithukrishnanV avatar Mar 16 '24 19:03 JithukrishnanV

@jithukv143 The results.json is created after scanning with Semgrep and contains the output of the scan results by running the command at this line https://github.com/lambdasec/autofix/blob/main/autofix.py#L129 How are you running the tool? I cannot see the error in your first screenshot which say "... not find the path specified" Can you try running directly from your CLI instead of the IDE.

codelion avatar Mar 17 '24 01:03 codelion

@jithukv143 This is may be because os.system(scan_command_input) is not creating results.json in your system.

mayur19 avatar Mar 17 '24 13:03 mayur19