Skip to content

Commit

Permalink
ignore unchecked os.Unsetenv from gosec reports
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yuvalk committed Oct 4, 2021
1 parent 718ff99 commit 98ac7af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gosec.conf.json
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
{}
{
"G104": {
"os": ["Unsetenv"]
}
}

0 comments on commit 98ac7af

Please sign in to comment.