forked from home-assistant/core
Enable more Bandit tests (#44307)
https://bandit.readthedocs.io/en/latest/plugins/index.html#complete-test-plugin-listing
This commit is contained in:
@@ -149,7 +149,7 @@ def basic_sanity_check(cursor):
|
||||
"""Check tables to make sure select does not fail."""
|
||||
|
||||
for table in ALL_TABLES:
|
||||
cursor.execute(f"SELECT * FROM {table} LIMIT 1;") # sec: not injection
|
||||
cursor.execute(f"SELECT * FROM {table} LIMIT 1;") # nosec # not injection
|
||||
|
||||
return True
|
||||
|
||||
|
@@ -1,6 +1,7 @@
|
||||
# https://bandit.readthedocs.io/en/latest/config.html
|
||||
|
||||
tests:
|
||||
- B103
|
||||
- B108
|
||||
- B306
|
||||
- B307
|
||||
@@ -13,5 +14,8 @@ tests:
|
||||
- B319
|
||||
- B320
|
||||
- B325
|
||||
- B601
|
||||
- B602
|
||||
- B604
|
||||
- B608
|
||||
- B609
|
||||
|
Reference in New Issue
Block a user