getGithubToken = () => {
  const token = getInput("github_token") || process.env.GITHUB_TOKEN;
  if (!token) {
    throw Error("Could not find github token");
  }
  return token;
}
Retrieve github token and throw error if it is not found.

@returns {string} GitHub token.