The only government action I think you might mean, the use of the Emergencies Act against the convoy protest occupying downtown Ottawa and its organizers and funding, might mean was in fact ruled by the Federal Court to violate section 8 of the Charter without being saved by section 1, though an appeal is still underway.
That said, as far as I’m aware based on publicly available evidence (not simply speculation), in that situation the government was motivated more by the significant extended disruption from the protest than by the particular political views involved.
Doesn't seem to protect you if the government doesn't like your political opinions.