Skip to content

Commit 2bfb0bb

Browse files
devatsecureclaude
andcommitted
fix: Allow spaces in --disclosure-reporter CLI argument
The default value "Security Researcher" contains a space but the validation regex rejected it. Widen the character class to accept spaces. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 699bd94 commit 2bfb0bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/hybrid/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def _resolve_flag(cli_val, env_key, config_key):
259259
f"WARNING: --disclosure-repo must start with https:// or http://, got: {args.disclosure_repo!r}. Skipping."
260260
)
261261
if args.disclosure_reporter:
262-
if re.fullmatch(r"[A-Za-z0-9@._-]+", args.disclosure_reporter):
262+
if re.fullmatch(r"[A-Za-z0-9@._ -]+", args.disclosure_reporter):
263263
os.environ["DISCLOSURE_REPORTER"] = args.disclosure_reporter
264264
else:
265265
print(f"WARNING: --disclosure-reporter contains unsafe characters: {args.disclosure_reporter!r}. Skipping.")

0 commit comments

Comments
 (0)