fixed gosec issue
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
1f99e427c5
commit
e6207b45af
@ -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")
|
||||
|
||||
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 {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user