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
reposcope.
3
Copy the token
Copy the token. GitHub shows it only once.
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.
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.
Troubleshooting
Failed imports show a message on the import. The common causes:Frequently asked questions
Is my token safe?
Is my token safe?
The token is stored encrypted. It is never shown again in the dashboard or returned by the API; it is always masked.
Can I commit to more than one repository?
Can I commit to more than one repository?
Each importer has one GitHub destination. Create another importer for a second repository.
Can I send JSON instead of CSV?
Can I send JSON instead of CSV?
No. The GitHub destination commits CSV files only.

