Skip to main content
The GitHub destination commits every import to a GitHub repository as a single CSV file. You choose the repository, the branch, and optionally the folder and file name. Each import produces one commit with one file.

Before you start

You need:
  • A GitHub repository, owned by your user account or by an organization.
  • The branch the files should be committed to, for example main. The branch must already exist.
  • A GitHub personal access token that can write to the repository’s contents.

Create a personal access token

1

Open the token settings

In GitHub, go to Settings > Developer settings > Personal access tokens.
2

Create the token

Create a token that can write to the repository:
  • Fine-grained token: give it access to the repository and set the Contents permission to Read and write.
  • Classic token: select the repo scope.
If the repository belongs to an organization, the organization may need to approve the token before it works.
3

Copy the token

Copy the token. GitHub shows it only once.
Keep the token safe. It gives write access to your repository.

Set up the destination

1

Select GitHub as the destination

Open your importer, go to the Destination tab and choose GitHub.
2

Enter the token and repository

Fill in the required fields:
3

Set the folder and file name (optional)

4

Test the connection

Click Test Connection, then Save.
Test Connection checks the token, the repository and the branch. When it succeeds, the form shows Connected to owner/repo (branch), and the connected state stays after you save.
To use a different token or repository, click Disconnect and set the destination up again.

File names

The file is saved as <folder path>/<file name>.csv. Enter the name without the .csv extension; it is added for you. If File Name is empty, CSVbox generates a name from the import ID and your user ID, so every import creates a new file.

Replacing and keeping files

When a file with the same name already exists in the folder: Either way, GitHub keeps the earlier versions in the repository’s commit history.

File size limit

GitHub rejects files larger than 100 MB. CSVbox encodes the file before sending it to GitHub, which makes it larger, so keep each import under about 75 MB of CSV.
  • An import is committed as one file. It is not split into parts.
  • An import over the limit fails with an error that says the file is too large. Nothing is committed.
For larger data, split the file before importing. See Split Large CSV, and GitHub’s About large files on GitHub.

Troubleshooting

Failed imports show a message on the import. The common causes:

Frequently asked questions

The token is stored encrypted. It is never shown again in the dashboard or returned by the API; it is always masked.
Each importer has one GitHub destination. Create another importer for a second repository.
No. The GitHub destination commits CSV files only.