Skip to content

Commit

Permalink
DOP-4414 secret
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 18, 2024
1 parent 10bf719 commit db82c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export const TriggerBuild = async (event: APIGatewayEvent): Promise<APIGatewayPr
};
}

if (!validateJsonWebhook(event, c.get<string>('githubSecret'))) {
if (!validateJsonWebhook(event, process.env.GITHUB_SECRET)) {
const errMsg = "X-Hub-Signature incorrect. Github webhook token doesn't match";
return {
statusCode: 401,
Expand Down

0 comments on commit db82c8d

Please sign in to comment.