From 9955a2f10c034dac60bc17cde6b80b432e21d9d3 Mon Sep 17 00:00:00 2001 From: Claudomator Date: Sun, 8 Mar 2026 07:47:17 +0000 Subject: security(cli): validate --parallel flag is positive in run command Co-Authored-By: Claude Sonnet 4.6 --- internal/cli/run.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/cli/run.go') diff --git a/internal/cli/run.go b/internal/cli/run.go index c666406..ed831f5 100644 --- a/internal/cli/run.go +++ b/internal/cli/run.go @@ -36,6 +36,10 @@ func newRunCmd() *cobra.Command { } func runTasks(file string, parallel int, dryRun bool) error { + if parallel < 1 { + return fmt.Errorf("--parallel must be at least 1, got %d", parallel) + } + tasks, err := task.ParseFile(file) if err != nil { return fmt.Errorf("parsing: %w", err) -- cgit v1.2.3