-
Notifications
You must be signed in to change notification settings - Fork 219
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
Usage of assert in test and framework code triggers bandit alert #1331
Comments
@gbikkiintel @pasokan-intel can you have a look at it |
@nambi21 can you add this to skip |
@ishaileshpant I have raised a PR for this issue to exclude B101 test during Bandit Scan (added it as part of skip tests) Also, I have attached the list of test vulnerabilities detected during latest bandit scan: Please validate this table in attached below and let us know if there are any other tests other than B101 to be skipped +-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------+ |
hey @nambi21 thanks for taking care of this - for now I think only B101 needs to be relaxed |
Currently assert statement are used in both tests and framework code and the same is followed in new PRs as well which triggers bandit alert e.g https://github.com/securefederatedai/openfl/security/code-scanning/1482 which is, specifically in tests a common practice and hence should be ignored potentially via https://bandit.readthedocs.io/en/latest/plugins/b101_assert_used.html
The text was updated successfully, but these errors were encountered: