From 3b10333be7bc6e45f358ed7dfde7c8d96be26671 Mon Sep 17 00:00:00 2001 From: Mauri de Souza Meneguzzo Date: Mon, 7 Oct 2024 12:15:23 -0300 Subject: [PATCH] fix gosec lint --- logp/defaults_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logp/defaults_test.go b/logp/defaults_test.go index 21a88fe..4fa4258 100644 --- a/logp/defaults_test.go +++ b/logp/defaults_test.go @@ -126,7 +126,7 @@ func TestDefaultConfigContainer(t *testing.T) { } if os.Getenv("TEST_DEFAULT_CONFIG_CONTAINER") != "1" { - cmd := exec.Command(os.Args[0], "-test.run=^TestDefaultConfigContainer$", "-test.v") + cmd := exec.Command(os.Args[0], "-test.run=^TestDefaultConfigContainer$", "-test.v") //nolint:gosec // This is intentionally running a subprocess cmd.Env = append(cmd.Env, "TEST_DEFAULT_CONFIG_CONTAINER=1") var stderr bytes.Buffer