mirror of
https://github.com/securego/gosec.git
synced 2026-06-20 00:15:59 +02:00
Fix the G117 rule to take the JSON serialization into account (#1528)
* Fix g117 to take into account the json serialization Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch> * Ignore lint warning Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch> --------- Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>
This commit is contained in:
@@ -74,7 +74,7 @@ func (u *utilities) run(args ...string) {
|
||||
}
|
||||
|
||||
func shouldSkip(path string) bool {
|
||||
st, e := os.Stat(path)
|
||||
st, e := os.Stat(path) // #nosec G703 -- gosecutil intentionally inspects user-supplied local file paths
|
||||
if e != nil {
|
||||
//#nosec
|
||||
fmt.Fprintf(os.Stderr, "Skipping: %s - %s\n", path, e)
|
||||
|
||||
Reference in New Issue
Block a user