awslabs / automated-security-helper

https://awslabs.github.io/automated-security-helper/
Apache License 2.0
361 stars 44 forks source link

Unable to parse .bandit file #101

Open Richins-AWS opened 1 month ago

Richins-AWS commented 1 month ago

I have a .bandit file that seems to not be working when used with ASH:

# .bandit
[bandit]
exclude = test/test_*.py

This works if ran locally with the following:

bandit -r .

but when run in ASH locally (./ash --source-dir ../dir/my_repo --output-dir ../delete_me --debug) the file errors:

[main]  INFO    Found project level .bandit file: /tmp/ash-run-scan.shte/.bandit
[utils] WARNING Unable to parse config file /tmp/ash-run-scan.shte/.bandit or missing [bandit] section

Which leads to B101 errors...