This repository was archived by the owner on Jun 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 33
44class GenAIAuthSerializer (serializers .Serializer ):
55 is_valid = serializers .BooleanField ()
6- repos = serializers .ListField (child = serializers .CharField (), required = False )
Original file line number Diff line number Diff line change 33from hashlib import sha256
44
55from django .utils .crypto import constant_time_compare
6+ from api .gen_ai .serializers import GenAIAuthSerializer
67from rest_framework .exceptions import NotFound , PermissionDenied
78from rest_framework .permissions import AllowAny
89from rest_framework .response import Response
1718
1819class GenAIAuthView (APIView ):
1920 permission_classes = [AllowAny ]
21+ serializer_class = GenAIAuthSerializer
2022
2123 def validate_signature (self , request ):
2224 key = get_config (
Original file line number Diff line number Diff line change 44
55DEBUG = False
66THIS_POD_IP = os .environ .get ("THIS_POD_IP" )
7- ALLOWED_HOSTS = get_config (
8- "setup" , "api_allowed_hosts" , default = ["stage-api.codecov.dev" ]
9- )
7+ ALLOWED_HOSTS = ["*" ]
108if THIS_POD_IP :
119 ALLOWED_HOSTS .append (THIS_POD_IP )
1210
You can’t perform that action at this time.
0 commit comments