mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
webhooks: fix oversight in payload verification
This commit is contained in:
parent
641cd03056
commit
dba925cf4d
|
@ -339,6 +339,7 @@ def todo_ticket(tracker_id):
|
|||
@webhooks.route("/webhooks/build-complete/<details>", methods=["POST"])
|
||||
def build_complete(details):
|
||||
payload = verify_request_signature(request)
|
||||
payload = json.loads(payload.decode('utf-8'))
|
||||
details = fernet.decrypt(details.encode())
|
||||
if not details:
|
||||
return "Bad payload", 400
|
||||
|
|
Loading…
Reference in New Issue