Skip to content

Commit

Permalink
ignore G204 in ExecAndLogCommandWithStderr
Browse files Browse the repository at this point in the history
Ignored as general purpose command execution function
  • Loading branch information
yuvalk committed Oct 4, 2021
1 parent 6e001d2 commit 0df7ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functests/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func ExecAndLogCommandWithStderr(name string, arg ...string) ([]byte, []byte, er

var stdout bytes.Buffer
var stderr bytes.Buffer
cmd := exec.CommandContext(ctx, name, arg...)
cmd := exec.CommandContext(ctx, name, arg...) // #nosec G204
cmd.Stdout = &stdout
cmd.Stderr = &stderr

Expand Down

0 comments on commit 0df7ae4

Please sign in to comment.