diff --git a/pkg/sops/sops.go b/pkg/sops/sops.go index be65b07..958c136 100644 --- a/pkg/sops/sops.go +++ b/pkg/sops/sops.go @@ -45,10 +45,7 @@ func (d *Decryptor) Decrypt(fileName string, encrypted string) ([]byte, error) { // We shell out to SOPS because that way we get better error messages command := exec.Command("sops", args...) - - buffer := bytes.Buffer{} - buffer.WriteString(encrypted) - command.Stdin = &buffer + command.Stdin = bytes.NewBufferString(encrypted) output, err := command.Output() if err != nil {