-
Notifications
You must be signed in to change notification settings - Fork 285
[SDL] Enable Bandit B404 test #3913
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |||||
| # limitations under the License. | ||||||
|
|
||||||
| import os.path | ||||||
| import subprocess | ||||||
| import subprocess # nosec B404 | ||||||
|
||||||
| import subprocess # nosec B404 | |
| import subprocess # nosec B404: imported only for CalledProcessError exception handling; no subprocess commands are executed in this module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same concern as above: suppressing B404 at the import level with no explanation makes it hard to audit why
subprocessis safe here. Add a short rationale to the# noseccomment and consider limiting suppression to the specific safe usage instead of the module import.