Fixed the github head and fetch tokens