GM autos used a different key for door and ignition. Trucks did not. However the only difference in the keys was the part you hold. They are
B10 and
B11. Trucks used a B10 for all locks.
It is best to re-pin the ignition cylinder to match the door lock since the door lock cylinder usually has the code stamped on it and the ignition cylinder usually doesn't.