Skip to content

Commit

Permalink
Merge pull request #27740 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Aug 25, 2023
2 parents 9ee5a27 + f89e409 commit 0f886d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/webhooks/securing-your-webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

0 comments on commit 0f886d9

Please sign in to comment.