improve permission logic
only inject ssk key if private repository or pull request
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
improved error messaging for failed build due to Docker errors
fixed unit test
Merge pull request #777 from bradrydzewski/master

improved debugging when Docker errors