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")