You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running bandit with pre-commit. I want to dump the report in a json format so that I can exploit it afterward.
For some unknown reason, the json generated is broken at the end, in a random way at every run.
1. Run the command: pre-commit run -a
2. Check the json file generated
Expected behavior
I would expect the json file to be properly formatted and not have this random excess at the end of the file.
Bandit version
1.7.4
Python version
3.11 (Default)
Additional context
Looks like the issue only happen when using bandit with pre-commit. I did the test using bandit alone an its working fine, so maybe this issue is not at the right place...
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm running bandit with pre-commit. I want to dump the report in a json format so that I can exploit it afterward.
For some unknown reason, the json generated is broken at the end, in a random way at every run.
Here is the json ouput :
Here is my pre-commit hook :
Reproduction steps
Expected behavior
I would expect the json file to be properly formatted and not have this random excess at the end of the file.
Bandit version
1.7.4
Python version
3.11 (Default)
Additional context
Looks like the issue only happen when using bandit with pre-commit. I did the test using bandit alone an its working fine, so maybe this issue is not at the right place...
No response
The text was updated successfully, but these errors were encountered: