Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// handler.js
"use strict"
const Libhoney = require("libhoney").default
const flatten = require("flat")
const GraphQLClient = require("graphql-request").GraphQLClient
const hny = new Libhoney({
writeKey: process.env.HONEYCOMB_KEY,
dataset: "gatsbyjs-os.lambda.github-webhook",
})
console.log(`env vars`, process.env)
const client = new GraphQLClient(
"https://api.graph.cool/simple/v1/cj8xuo77f0a3a0164y7jketkr",
{
headers: {
Authorization: `Bearer ${process.env.GRAPHCOOL_TOKEN}`,
},
}
)
function createBranch(branch) {