private function set_auth_required( $token ) {
		// Set booleans for Enterprise repos.
		if ( $token->enterprise ) {
			static::$auth_required['github_enterprise'] = static::$auth_required['github_enterprise']
				?: 'github' === $token->git;
			static::$auth_required['gitlab_enterprise'] = static::$auth_required['gitlab_enterprise']
				?: 'gitlab' === $token->git;
			static::$auth_required['bitbucket_server']  = static::$auth_required['bitbucket_server']
				?: 'bitbucket' === $token->git;
		}

		// Set booleans for private repos.
		if ( $this->is_private( $token ) ) {
			static::$auth_required['github_private']    = static::$auth_required['github_private']
				?: 'github' === $token->git;
			static::$auth_required['bitbucket_private'] = static::$auth_required['bitbucket_private']
				?: 'bitbucket' === $token->git;
			static::$auth_required['gitlab_private']    = static::$auth_required['gitlab_private']
				?: 'gitlab' === $token->git;
			static::$auth_required['gitea_private']     = static::$auth_required['gitea_private']
				?: 'gitea' === $token->git;
		}

		// Always set to true.
		static::$auth_required['gitlab'] = true;
		static::$auth_required['gitea']  = true;
	}