Fix security validation patterns to avoid false positives

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-08 15:25:44 +00:00
co-authored by whyour
parent ac8090d937
commit 0a2d7b1597
3 changed files with 150 additions and 11 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ export default (app: Router) => {
celebrate({
body: Joi.object({
name: Joi.string().required(),
content: Joi.string().allow('').optional().custom((value, helpers) => {
content: Joi.string().allow('').optional().custom((value: any, helpers: any) => {
if (!value) return value;
// Security validation for configuration file content