Review pull requests
AC
Blocks
bot
reviewed
Just now
src/providers/discord.tsx
B
Blocks
bot
Just now
🛡️
Security/Validation
: The API accepts
provider_type
as a string and casts it directly to
TriggerProviderIntegrationBased
without validation.
Suggested change
128
129
-
params.
workspace_id
,
-
params.
provider_type
as
TriggerProviderIntegrationBased,
128
129
+
// Add validation for provider_type
+
if
(!validProviders.
includes
(params.
provider_type
))
{