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

Usage

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