ci(forgejo): install Node.js before actions/checkout@v4 (#2)
This commit is contained in:
parent
98eebe62bf
commit
7baa48ec4d
27 changed files with 102 additions and 44 deletions
2
cache.py
2
cache.py
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue