I would find somewhere else to work if I had ethical concerns over what they were asking me to do. For example, the UK’s department of work and pensions was a contract the company I work for had at the time when there was a huge furore over IDS (a politician)’s policies.
If i had been assigned to work on that project I would have resigned.