routes: fix mypy no-any-return in get_pow_secret
Some checks failed
CI / Security Scan (push) Successful in 31s
CI / Lint & Format (push) Successful in 35s
CI / Advanced Security Tests (push) Successful in 32s
CI / Memory Leak Check (push) Successful in 32s
CI / Security Tests (push) Successful in 47s
CI / Unit Tests (push) Successful in 1m8s
CI / SBOM Generation (push) Successful in 31s
CI / Fuzz Testing (push) Successful in 41s
CI / Build & Push Image (push) Failing after 15s
CI / Harbor Vulnerability Scan (push) Has been skipped
Some checks failed
CI / Security Scan (push) Successful in 31s
CI / Lint & Format (push) Successful in 35s
CI / Advanced Security Tests (push) Successful in 32s
CI / Memory Leak Check (push) Successful in 32s
CI / Security Tests (push) Successful in 47s
CI / Unit Tests (push) Successful in 1m8s
CI / SBOM Generation (push) Successful in 31s
CI / Fuzz Testing (push) Successful in 41s
CI / Build & Push Image (push) Failing after 15s
CI / Harbor Vulnerability Scan (push) Has been skipped
This commit is contained in:
@@ -752,7 +752,8 @@ def is_admin() -> bool:
|
||||
|
||||
def get_pow_secret() -> bytes:
|
||||
"""Get PoW signing secret from app config."""
|
||||
return current_app.config["POW_SECRET"].encode()
|
||||
secret: str = current_app.config["POW_SECRET"]
|
||||
return secret.encode()
|
||||
|
||||
|
||||
def generate_challenge(difficulty_override: int | None = None) -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user