mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Enable more Bandit tests (#44307)
https://bandit.readthedocs.io/en/latest/plugins/index.html#complete-test-plugin-listing
This commit is contained in:
parent
1ac937c7d5
commit
de04a1ed67
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user