spf13/cobra

Investigate G602 bypass fix

jpmcb opened this issue · 0 comments

cobra/command.go

Lines 780 to 782 in a0a6ae0

// Temporarily disable gosec G602, which produces a false positive.
// See https://github.com/securego/gosec/issues/1005.
return matches[0] // #nosec G602

It appears there are some fixes for these // #nosec linter bypasses: securego/gosec#1017

We should investigate if we can consume these and not have to bypass this lint