Chore: Disable gosec on certain line (#29382)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen 2020-12-10 11:53:21 +01:00 committed by GitHub
parent 70d68c156d
commit 8b21290164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,6 +178,7 @@ func (hs *HTTPServer) getListener() (net.Listener, error) {
}
// Make socket writable by group
// nolint:gosec
if err := os.Chmod(setting.SocketPath, 0660); err != nil {
return nil, errutil.Wrapf(err, "failed to change socket permissions")
}