From 98ac7af8a23d9bc0bb79a282960b5bcbf05aaaac Mon Sep 17 00:00:00 2001 From: Yuval Kashtan Date: Thu, 23 Sep 2021 13:21:16 +0300 Subject: [PATCH] ignore unchecked os.Unsetenv from gosec reports it seems that, yes, we dont check for errors, but the function always return nil err. this is to avoid CWE-703 on os.Unsetenv --- gosec.conf.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosec.conf.json b/gosec.conf.json index 0967ef424..f92cf3f68 100644 --- a/gosec.conf.json +++ b/gosec.conf.json @@ -1 +1,5 @@ -{} +{ + "G104": { + "os": ["Unsetenv"] + } +}