In Queensland Australia in the 1980s you got photographed by a form of state secret police when you joined protests against the then very right wing and extremely nasty government. I had my own file, which I eventually saw under freedom of Information" .It contained copies of my letters to the editor, among other things.
Luckily, when i eventually went back to work after my youngest started school, it was in a private firm: I'm pretty sure I would not have got a government job.
So you do take a risk letting your face be seen, but it is a risk that you have to take when you are fighting for a just cause.
That government stayed in power through a blatant gerrymander, but even with this, they lost power after the Fitzgerald Enquiry, which resulted in the Police Commissioner and some MPs doing serious jail time. The incoming Labour government instigated electoral reform, ensuring that boundaries were set by an independent electoral commission. This system remains to this day.
I'm proud that I did my bit to fight the fascists.