Fix SHA issues and collect build status'.

If we pull the SHA of the build from the right place it's not truncated
so we don't need to ask github for the full one.

Also, we want to only submit one success or failure status to github
because the pull request UI hides all but the last status update from
view, which means it could look like success but is actually failure.