An analogy is the government forcing you to draw something objectionable, and then sign your name to it. That's clearly unconstitutional compelled speech, plus the mere existence of an obscene work signed by you could seriously harm your reputation as an artist.
Here the creative work is software, and the signature is digital, but the principle is the same.