MCPcopy Create free account
hub / github.com/serverless/examples / signRequestBody

Function signRequestBody

aws-node-serverless-gong/handler.js:5–7  ·  view source on GitHub ↗
(key, body)

Source from the content-addressed store, hash-verified

3
4// validate your payload from GitHub
5function signRequestBody(key, body) {
6 return `sha1=${crypto.createHmac('sha1', key).update(body, 'utf-8').digest('hex')}`;
7}
8// webhook handler function
9exports.gongHandler = async (event) => {
10 // get the GitHub secret from the environment variables

Callers 1

handler.jsFile · 0.70

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected