my check engine light came on and my truck idles rough and it will not run
Stop off at your local auto parts store and have them scan for the code or codes and post the 4 digit code back here.
if your truck is still under warranty just take it to the gm dealership and tell them you have an issue i do believe they are obligated to fix anything that mechanically goes wrong with the car till warranty is up.
Search GMC Sierra 1500 Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
GMC Sierra 1500 Experts