Please don't engage in political flamewar on HN. As Orwell pointed out almost eight decades ago: "The word Fascism has now no meaning except in so far as it signifies ‘something not desirable’."[1] and is now obviously only a dog-whistle for fellow ideologues. This does not belong on HN.
I work in consulting. The best bet is not to work for the government. But to work for a consulting company that contracts with the government. You will get paid more. I use to work for a consulting department that focused on the public sector.
Even with that, work security in government is still unparalleled. In the private sector, if the chief executive wanted to lay off 90% of the workforce, they could.
Compare the downsizing of Twitter to the downsizing of the government.