Access to private repositories

  1. Create a new personal access token
  2. Add privateRepo to your source definition and set it to true
  3. Add credentials.username and credentials.token to your source definition

How to generate a personal access token


module.exports = {
  siteName: 'Gridsome',
  plugins: [
      use: '@noxify/gridsome-source-git',
      options: {
        remote: '',
        target: 'git-source/github/private/',
        privateRepo: true,
        credentials: {
          username: '<github username>',
          token: '<github personal access token>'
        typeName: 'PrivateGithub'