tcms.utils.github module¶
-
tcms.utils.github.
calculate_signature
(secret, contents)[source]¶ Calculate GitHub signature header.
WARNING: both parameters must be bytes, not string!
-
tcms.utils.github.
verify_signature
(request, secret)[source]¶ Verifies request comes from GitHub, see: https://developer.github.com/webhooks/securing/