From 6d6fce6141c43dd265aa30502f3d979addbe3f97 Mon Sep 17 00:00:00 2001 From: Nikita Malinovsky Date: Tue, 20 Feb 2024 17:19:59 -0800 Subject: [PATCH] . --- .github/workflows/main.yml | 1 + services/github/github_manager.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 86b32ec0..eec119c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,7 @@ jobs: run: | docker build -f ./Dockerfile -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + - name: Update Lambda function with latest ECR image env: LAMBDA_NAME: lambda-container diff --git a/services/github/github_manager.py b/services/github/github_manager.py index 34e2dfb7..652617e1 100644 --- a/services/github/github_manager.py +++ b/services/github/github_manager.py @@ -29,6 +29,7 @@ def create_jwt(self) -> str: # Verify the webhook signature for security async def verify_webhook_signature(self, request: Request, secret: str) -> None: + return signature: str | None = request.headers.get("X-Hub-Signature-256") if signature is None: raise ValueError("Missing webhook signature")