From 241be64da548f45f84008026064f899b967edca7 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 25 Oct 2022 10:03:20 -0400 Subject: [PATCH] gosec --- test/e2e/pkg/infrastructure.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/e2e/pkg/infrastructure.go b/test/e2e/pkg/infrastructure.go index 9d1a35fd5..6c8029713 100644 --- a/test/e2e/pkg/infrastructure.go +++ b/test/e2e/pkg/infrastructure.go @@ -56,8 +56,12 @@ func NewDockerInfrastructureData(m Manifest) (InfrastructureData, error) { Instances: make(map[string]InstanceData), Network: netAddress, } - for name := range m.Nodes { - ifd.Instances[name] = InstanceData{ //nolint: gosec + // gosec complains about the following line, stating that the second + // param in the range expression should be _- i.e. k, _ := range... - + // however, there is no second param in the range here so this seems + // like a false positive. + for name := range m.Nodes { //nolint: gosec + ifd.Instances[name] = InstanceData{ IPAddress: ipGen.Next(), } }