fixed gosec issue

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-20 09:58:26 -07:00
parent 1f99e427c5
commit e6207b45af
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C

View File

@ -33,7 +33,8 @@ func (c secretExecTask) Run(ctx context.Context, pctx *plancontext.Context, _ so
lg.Debug().Str("name", secretExec.Command.Name).Str("args", strings.Join(secretExec.Command.Args, " ")).Msg("executing secret command") lg.Debug().Str("name", secretExec.Command.Name).Str("args", strings.Join(secretExec.Command.Args, " ")).Msg("executing secret command")
out, err := exec.CommandContext(ctx, secretExec.Command.Name, secretExec.Command.Args...).Output() // sec audited by @aluzzardi and @mrjones
out, err := exec.CommandContext(ctx, secretExec.Command.Name, secretExec.Command.Args...).Output() //#nosec G204
if err != nil { if err != nil {
return nil, err return nil, err
} }