As I imagine you would suspect, that just would never happen for my job. But let me explain.
My job is very much delineated by the law and policy as written in statute, regulations, policy statements, and certain official memos. There are certain instances in which I can be given specific directives, but they have to be in writing through the “chain of command.”
Further, I am in a union. Which provides further guidance as to what I can/cannot be instructed to do.
Moreover, I am ostensibly fireable only for cause, with a specific procedure to be followed.
Of course, this administration has attempted to eliminate government employee union protection, and get around civil service protection. My specific position has seen multiple efforts to make folk in my job more easily fireable - and more responsive to the politics of the current administration. A lot of federal employees have thought their jobs secure, and thought they had been performing valuable services, yet have been shitcanned - seemingly contrary to long-established practices and law.
Also, the law/policy have changed many times over my career - sometimes to be more “liberal”, other times more “conservative.” My personal ethics play ZERO role in terms of how I administer and interpret the law. I apply the law as written as I understand it, whether or not it jibes with my personal ideology.
So, if someone “whispered in my ear” as you suggest, the FIRST thing I would do is memorialize it in writing, asking for corroboration, clarification, and explanation. I suspect I would write an email to my immediate supervisor, and copy her immediate boss and the union. I’d say as little as possible, other than, “Please confirm our conversation of (date/time). As I understood it, you instructed me to consider the race and language skills of individuals I encounter in my job. If I am correct, please identify the authority for that. If I am incorrect, please explain what you intended to communicate.”
Then I’d see where it goes from there.
I am in a fortunate position that I could quit/be fired today and not have to worry about putting food on the table. OTOH, historically firing persons similarly situated as I has not been an immediate process. I would likely eventually be placed on administrative leave, during which I would continue to receive my salary without needing to work.
My position is strictly a creation of legislation. If Congress wished, they could eliminate my position with another piece of legislation. If they wished to require that I consider race, language skills, or anything else, they could do that through legislation, regulation, or policy. If they did so in a manner that I found egregious, I would be faced with the option of either complying (I hope I wouldn’t), quitting, or disobeying and seeing if I got fired.
Make sense? Would I be acting ethically or not?
I have no idea how ICE folk could live with themselves these days. And working in DoJ would be mighty challenging. Of course, if someone lacks tremendous transferrable skills and makes a certain level of income, I could imagine them going through all manner of mental gymnastics to rationalize things.
And why focus only on gov’t employees. Is it unethical to work for a major defense contractor? If you design the bombs, or only sweep the floors?