From ff5aee7158bd46e4ae22bc431adadd7060a6e277 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 10 Apr 2023 18:31:58 +0200 Subject: Add bandit scan tool to Makefile - mark some security issue as non relevants --- ishtar_common/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ishtar_common/utils.py') 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) -- cgit v1.2.3