enable code block again (#1909)

This commit is contained in:
Shuchang Zheng 2025-03-09 20:31:21 -07:00 committed by GitHub
parent 8537a29b1c
commit 494e750e91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 133 additions and 39 deletions

View file

@ -132,3 +132,10 @@ class InvalidTemplateWorkflowPermanentId(SkyvernHTTPException):
message=f"Invalid template workflow permanent id: {workflow_permanent_id}. Please make sure the workflow is a valid template.",
status_code=status.HTTP_400_BAD_REQUEST,
)
class InsecureCodeDetected(SkyvernException):
def __init__(self, msg: str) -> None:
super().__init__(
f"Insecure code detected. Reason: {msg}",
)