diff --git a/cmd/clusterctl/client/cluster/template_test.go b/cmd/clusterctl/client/cluster/template_test.go index 9e58000dcffb..af9ba015eead 100644 --- a/cmd/clusterctl/client/cluster/template_test.go +++ b/cmd/clusterctl/client/cluster/template_test.go @@ -310,7 +310,7 @@ func Test_templateClient_GetFromURL(t *testing.T) { // redirect stdin saveStdin := os.Stdin defer func() { os.Stdin = saveStdin }() - os.Stdin, err = os.Open(path) + os.Stdin, err = os.Open(path) //nolint:gosec g.Expect(err).NotTo(HaveOccurred()) type args struct {