Is it secure to connect a google account with online accounts of GNOME?
I would say so with the proviso that you should invoke 2 step verification on on your Google account.
I have been using my Google account with Ubuntu for some time and have not had any issues of concern.
If security still concerns you, you can also install ClamTK from the Ubuntu Software Center for an additional layer of security/peace of mind.