Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Results.json missing #2

Open
JithukrishnanV opened this issue Mar 16, 2024 · 2 comments
Open

Results.json missing #2

JithukrishnanV opened this issue Mar 16, 2024 · 2 comments

Comments

@JithukrishnanV
Copy link

JithukrishnanV commented Mar 16, 2024

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

@codelion
Copy link
Member

@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.

@mayur19
Copy link

mayur19 commented Mar 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants