I encountered this problem as well. My problem was caused by one of the vars is an empty string. You might want to check the vars before using them.
In your case, you also have another problem which is you should either use token or image. No need to use all of them, can be seen in their source code caprover/deploy-from-github