mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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."""
|
"""Check tables to make sure select does not fail."""
|
||||||
|
|
||||||
for table in ALL_TABLES:
|
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
|
return True
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# https://bandit.readthedocs.io/en/latest/config.html
|
# https://bandit.readthedocs.io/en/latest/config.html
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
|
- B103
|
||||||
- B108
|
- B108
|
||||||
- B306
|
- B306
|
||||||
- B307
|
- B307
|
||||||
@ -13,5 +14,8 @@ tests:
|
|||||||
- B319
|
- B319
|
||||||
- B320
|
- B320
|
||||||
- B325
|
- B325
|
||||||
|
- B601
|
||||||
- B602
|
- B602
|
||||||
- B604
|
- B604
|
||||||
|
- B608
|
||||||
|
- B609
|
||||||
|
Loading…
x
Reference in New Issue
Block a user