fix(cli): reject an empty JavaScript application path (#5265)

This commit is contained in:
Vishal Tambi authored and GitHub committed 2026-10-22 03:50:52 +08:00
1 parent d8199ab6af
commit 1a945ce9ff
2 files changed
+28 -1

No files matched your search

+3 -1
View File
@@ -297,7 +297,9 @@ const registerJavaScriptApplicationCommand = (
logCliCommand(logger, CLI_COMMANDS.analyzeJavaScriptApplication, () =>
runCliJavaScriptApplicationAnalysis(
{
input_path: absoluteCallerPath(args.path),
// An empty path names no file; leave it for input validation.
input_path:
args.path === "" ? args.path : absoluteCallerPath(args.path),
format: options.artifactFormat,
integrity_policy: options.integrityPolicy,
...(options.maxSemanticNodes === undefined