From f89e409aef10b6bfeab39e5554651af8ca0d21d1 Mon Sep 17 00:00:00 2001 From: Anne-Marie <102995847+am-stead@users.noreply.github.com> Date: Fri, 25 Aug 2023 20:03:38 +0200 Subject: [PATCH] Fix broken link - RubyDocs `secure_compare` (#41400) --- content/webhooks/securing-your-webhooks.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/webhooks/securing-your-webhooks.md b/content/webhooks/securing-your-webhooks.md index e016c67f9559..cb55b39d9ac2 100644 --- a/content/webhooks/securing-your-webhooks.md +++ b/content/webhooks/securing-your-webhooks.md @@ -115,9 +115,9 @@ import hashlib import hmac def verify_signature(payload_body, secret_token, signature_header): """Verify that the payload was sent from GitHub by validating SHA256. - + Raise and return 403 if not authorized. - + Args: payload_body: original request body to verify (request.body()) secret_token: GitHub app webhook token (WEBHOOK_SECRET) @@ -210,5 +210,5 @@ const handleWebhook = (req: Request, res: Response) => { }; ``` -[secure_compare]: https://rubydoc.info/github/rack/rack/main/Rack/Utils:secure_compare +[secure_compare]: https://www.rubydoc.info/gems/rack/Rack%2FUtils:secure_compare [timingSafeEqual]: https://nodejs.org/api/crypto.html#cryptotimingsafeequala-b