diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-04-10 18:31:58 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-04-17 15:47:16 +0200 |
commit | ff5aee7158bd46e4ae22bc431adadd7060a6e277 (patch) | |
tree | 120f0fe58d2872aec800b7b794dc9dd5222a9e44 /ishtar_common/utils.py | |
parent | 71a256dc52ed3391638dcf9669cf57d75475d326 (diff) | |
download | Ishtar-ff5aee7158bd46e4ae22bc431adadd7060a6e277.tar.bz2 Ishtar-ff5aee7158bd46e4ae22bc431adadd7060a6e277.zip |
Add bandit scan tool to Makefile - mark some security issue as non relevants
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r-- | ishtar_common/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index 3a3c53853..91591e0b2 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -399,7 +399,8 @@ def get_cache(cls, extra_args=tuple(), app_label=None): ): cls._add_cache_key_to_refresh(extra_args) if len(cache_key) >= 250: - m = hashlib.md5() + # nosec: used for a cache key no consequence if predictable + m = hashlib.md5() # nosec m.update(cache_key) cache_key = m.hexdigest() return cache_key, cache.get(cache_key) |