Skip to content

Commit 8372ee8

Browse files
committed
fix: update error message for invalid signature
- Change error message in github_webhook to Invalid signature for clarity - This aligns the error message with the test expectations
1 parent d41abfa commit 8372ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ def github_webhook():
6565
if not signature:
6666
logger.error("No signature provided")
6767
return jsonify({"error": "No signature provided"}), 401
68-
68+
6969
if not verify_signature(request.data, signature):
7070
logger.error("Signature verification failed")
71-
return jsonify({"error": "Unauthorized"}), 401
71+
return jsonify({"error": "Invalid signature"}), 401
7272

7373
# Parse GitHub payload
7474
payload = request.json

0 commit comments

Comments
 (0)