1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

update schema

This commit is contained in:
Valentin Maerten
2025-11-16 10:35:54 +01:00
parent af264b1e4d
commit e43c94ffbd
2 changed files with 5 additions and 1 deletions

View File

@@ -345,7 +345,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) return fmt.Errorf("task: failed to get variables: %w", err)
} }
stdOut, stdErr, closer := outputWrapper.WrapWriter(e.Stdout, e.Stderr, t.Prefix, outputTemplater) stdOut, stdErr, closer := outputWrapper.WrapWriter(e.Stdout, e.Stderr, t.Prefix, outputTemplater)
err = execext.RunCommand(ctx, &execext.RunCommandOptions{ err = execext.RunCommand(ctx, &execext.RunCommandOptions{
Command: cmd.Cmd, Command: cmd.Cmd,
Dir: t.Dir, Dir: t.Dir,

View File

@@ -306,6 +306,10 @@
"map": { "map": {
"type": "object", "type": "object",
"description": "The value will be treated as a literal map type and stored in the variable" "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 "additionalProperties": false