diff --git a/task.go b/task.go index 2b804b78..a7eadff5 100644 --- a/task.go +++ b/task.go @@ -420,7 +420,7 @@ func (e *Executor) runCommand(ctx context.Context, t *ast.Task, call *Call, i in return fmt.Errorf("task: failed to get variables: %w", err) } stdOut, stdErr, closer := outputWrapper.WrapWriter(e.Stdout, e.Stderr, t.Prefix, outputTemplater) - + err = execext.RunCommand(ctx, &execext.RunCommandOptions{ Command: cmd.Cmd, Dir: t.Dir, diff --git a/website/src/public/schema.json b/website/src/public/schema.json index 28ae6611..081c54f9 100644 --- a/website/src/public/schema.json +++ b/website/src/public/schema.json @@ -318,6 +318,10 @@ "map": { "type": "object", "description": "The value will be treated as a literal map type and stored in the variable" + }, + "secret": { + "type": "boolean", + "description": "Marks the variable as secret. Secret values will be masked as ***** in command logs to prevent accidental exposure of sensitive information." } }, "additionalProperties": false