We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e953a8 commit 53c1653Copy full SHA for 53c1653
index.js
@@ -36,7 +36,9 @@ const sourceCodeSchema = Joi.object()
36
description: Joi.string().required(),
37
// cvss_score: Joi.number().required(),
38
location: Joi.object().keys({
39
- path: Joi.string().required(),
+ path: Joi.string()
40
+ .regex(/^(?!\/opt\/mount\/|.\/|\/).*/)
41
+ .required(),
42
positions: Joi.object().keys({
43
begin: Joi.object()
44
.keys({
0 commit comments