message: Make token optional
diff: @@ -24,9 +24,9 @@ import GitUriParser from 'git-url-parse';
  import { Clone, Cred } from 'nodegit';
  export class GithubPreparer implements PreparerBase {
  - token: string;
  + token?: string;
  - constructor(params: { token: string }) {
  + constructor(params: { token?: string } = {}) {
  this.token = params.token;
  }
  @@ -52,7 +52,8 @@ export class GithubPreparer implements PreparerBase {
  template.spec.path ?? '.',
  );
  - await Clone.clone(repositoryCheckoutUrl, tempDir, {
  + const cloneOptions = token
  + ? {
  fetchOpts: {
  callbacks: {
  credentials() {
  @@ -60,7 +61,10 @@ export class GithubPreparer implements PreparerBase {
  },
  },
  },
  - });
  + }
  + : {};
  +
  + await Clone.clone(repositoryCheckoutUrl, tempDir, cloneOptions);
  return path.resolve(tempDir, templateDirectory);
  }
  