I think that "Mr Bates vs the post office" (https://m.imdb.com/title/tt27867155/) should be required watching for software developers.
It was an internal developer bearing witness that made a material difference here. If you're the developer logging in to fix errors and the postmaster scandal is in full swing, then it's time to look at being a whistleblower. If you're the developer writing code to hack emissions tests in cars, again, look at your ethics.