command: temporarily disable G602 due to securego/gosec#1005 (#2022)

This commit is contained in:
Unai Martinez-Corral 2023-08-29 16:04:59 +02:00 committed by GitHub
parent 4955da7c11
commit 285460dca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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