Wow, is the Overton Window shifting fast.
Of course, this should be made illegal - discrimination by political affiliation should be classified as illegal. But whether these laws are effective is another question.
Political affiliation is almost impossible to define. Voting records and party affiliations are not. It should be illegal to discriminate based on someone's voting record or party affiliation, and it should be illegal for the government to ask about it in the context of employment.
They'll gladly fire you for "not being loyal enough" whatever the cause, for example like ever questioning the dear leader or refusing to do exactly as told.
> whether they have made social media posts that could be considered incriminating by President-elect Donald Trump's team