Yeah, but discrimination based on location is different. I've seen remote companies say they'll only hire employees within 3 time zones of GMT, for example.
So if GitLab employs Russian nationals (living outside of Russia) but bans employees of any nationality living in Russia, I'm not sure this is discrimination based on national origin.
I'm a US remote contractor and the legal departments of many US companies won't even employee me full-time if I reveal that I don't spend 270 days inside the US (aka don't have US residence). Pretty standard practice to care about place of residence.
The guesses made by HNers in this thread about what's illegal must be way off.
So if GitLab employs Russian nationals (living outside of Russia) but bans employees of any nationality living in Russia, I'm not sure this is discrimination based on national origin.