Results.json missing
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.
And If I comment the code to remove the file, I'm getting this. Am I doing anything wrong here?
@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.
@jithukv143 This is may be because os.system(scan_command_input) is not creating results.json in your system.