ci(forgejo): install Node.js before actions/checkout@v4 (#2)
Some checks failed
CI / Security audit (bandit) (push) Successful in 34s
CI / lint (push) Successful in 45s
CI / typecheck (push) Successful in 48s
CI / Secret scan (gitleaks) (push) Successful in 31s
CI / test (push) Failing after 48s

This commit is contained in:
Crypto Rug Munch 2026-07-03 00:42:15 +02:00
parent 98eebe62bf
commit 7baa48ec4d
27 changed files with 102 additions and 44 deletions

View file

@ -31,7 +31,7 @@ class ResponseCache:
"""Generate cache key from URL + options."""
opt_str = json.dumps(options or {}, sort_keys=True)
raw = f"{url}:{opt_str}"
return hashlib.md5(raw.encode()).hexdigest()
return hashlib.md5(raw.encode(), usedforsecurity=False).hexdigest()
def get(self, url: str, options: dict | None = None) -> dict | None:
"""Get cached response if fresh."""