fix: add nosec flags
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-11 11:14:38 +01:00
parent 0388cf11bc
commit ffa8f99d67
2 changed files with 7 additions and 2 deletions

View File

@ -46,6 +46,7 @@ func (u *NSUpdate) execute(ctx context.Context, nsUpdateCmd string) error {
errBuffer := new(bytes.Buffer)
// #nosec G204
cmd := exec.CommandContext(ctx, "nsupdate", "-y", fmt.Sprintf("%v:%v:%v", u.tsigKey.Algorithm, u.tsigKey.Name, u.tsigKey.Secret))
// cmd.Stdout = os.Stdout
cmd.Stderr = bufio.NewWriter(errBuffer)