One of the best way to make coworkers friends is to talk about drugs you’ve done. Now that you have mutual comprimate it will be very difficult for one of you to fuck the other without it backfiring. Another good way is to hang out with the smokers, even if you don’t smoke. I’ve noticed that people smoking together is a nexus of power, especially if a higher up or the CEO does it.
Beware of doing this, as it can easily backfire when abused by HR. Stick to exchanging stories that could not be deemed to have an impact on your job, or explain bad performance.
... you can analyse this in a different way: think long term! The more successful you are in your job, the more you will bump into the same people again and again later, sometimes a decade later. Somebody else abused your trust by talking to HR, hence you could decide on the simple policy of never trusting them again, and cut them out of your high-trust network. Some fail your trust-related tests, some pass. Use this information wisely. (Note that an alternative policy is not being too history-sensitive, and let bygones be bygones.)