def METHOD_NAME(self):
    """Get GitHub API credentials
    """
    creds_folder_path = os.path.dirname(__file__)
    creds_file_path = os.path.join(creds_folder_path, CREDENTIALS_FILE)
    try:
        with open(creds_file_path) as creds_file:
            creds = yaml.safe_load(creds_file)
            if creds is not None:
                github_creds = creds.get(self.NAME, {})
                self.user = github_creds.get('user', '')
                self.api_token = github_creds.get('api_token', '')
            else:
                self.user = os.environ.get("GIT_USER_NAME")
                self.api_token = os.environ.get("GIT_API_TOKEN")
    except Exception as e:
        logger.error('Load credentials from {} failed with error: {}'.format(creds_file_path, repr(e)))