Run 12V through a MCP4151 Pot?

Also, if all you are doing is generating a voltage, you should use a DAC instead.