From 5aed6f8ee44a1fc5d7ffa9b248835527c3c98d0d Mon Sep 17 00:00:00 2001
From: umarcor <unai.martinezcorral@ehu.eus>
Date: Tue, 29 Aug 2023 14:59:47 +0200
Subject: [PATCH] command: temporarily disable G602 due to securego/gosec#1005

---
 command.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/command.go b/command.go
index 01f7c6f1..e4945ab8 100644
--- a/command.go
+++ b/command.go
@@ -752,7 +752,9 @@ func (c *Command) findNext(next string) *Command {
 	}
 
 	if len(matches) == 1 {
-		return matches[0]
+		// Temporarily disable gosec G602, which produces a false positive.
+		// See https://github.com/securego/gosec/issues/1005.
+		return matches[0] // #nosec G602
 	}
 
 	return nil