Skip to content

Data sources

Can I license my GitHub data to AI companies?

By Noah Loul · Updated

9 sections

Short answer

Potentially, yes. GitHub holds repositories, pull requests and code reviews, which teaches models how real engineers write and review code. If your company owns that data and has the right to share it, it may be suitable for licensing to AI teams after addressing open-source licenses, secrets in code and customer code. You generally keep ownership and license a defined dataset after sensitive details are removed.

System export

My GitHub data to AI

This page covers can I license my GitHub data to AI companies.Illustrative

What's in GitHub

Typical data includes repositories, pull requests and code reviews. Its value comes from the fact that it teaches models how real engineers write and review code.

What Acquisition Partners look for

Acquisition Partners prefer large, consistent histories that reflect real expert work and that can be legally licensed. Volume, years of history and specialization usually matter more than polish.

Risks to address

Before licensing, review open-source licenses, secrets in code and customer code. Check the software vendor's terms too — owning the data and the vendor allowing exports are separate questions.

What a GitHub organization holds

GitHub is code hosting, and its records are commits, pull requests, code reviews and issues. The code is one part. The discussion around it is another.

What a GitHub organization holds
RecordWhat it showsWhat to check
Repositories and commitsHow software is built and changedOwnership, and third-party code
Pull requests and reviewsHow engineers critique and improve codeCustomer names in comments
IssuesHow bugs are reported and resolvedPersonal details and customer references
Commit metadataWho changed what, and whenContributor names and emails
Configuration and workflow filesHow systems are deployedKeys, tokens and passwords

Confirm the repositories are yours

Confirm the repos are yours, not client-owned, and note any open-source licenses. A repository can contain employee code, contractor code, open-source libraries and code written for a customer, each with a different owner.

Open-source components keep their own licenses. They are identified and handled separately from the code your company wrote.

Forks of public projects add little, because the original is already public. Private, original code that your own engineers wrote is what is scarce.

Employee code is usually the company's, under employment and IP assignment terms. Contractor code depends on the contract, so check that each contractor agreement assigns the work to you.

Secrets in history

Credentials are committed by accident in almost every long-lived repository. Deleting a key from the current file does not remove it from the history, and a full clone keeps every commit and branch.

Scrubbing therefore covers the whole history, not only the latest version of each file. Any credential found should also be rotated, because a key that was ever committed should be treated as exposed.

Exporting

Organization owners can request an organization migration archive, or clone each repository. Cloning with the mirror option keeps every commit and branch.

Pull requests, review comments and issues are not part of a plain clone. They come from the migration archive or from the API, per repository.

Open a sample before anything is shared, and flag anything personal or confidential.

Why review history is sought

A pull request with review comments shows a problem, a proposed fix, the objections to it and the version that was accepted. That teaches more than finished code does.

SourceX also reviews source code. A company that lists source code is asked a few facts about it once, and the signed supplier agreement sets which repositories are in scope.

How to get started

You don't need to export anything to begin. Describe the system and roughly how much history you have, and SourceX can assess whether it fits. We focus on companies in the U.S., Canada, the EU, the UK, Australia, New Zealand, India, Singapore, South Africa, Latin America, the UAE and Saudi Arabia.

Frequently asked questions

Do I have to give AI companies access to my GitHub account?

No. Licensing normally involves delivering a dataset under a signed agreement — not account access.

Can I license repositories that include open-source code?

Your own code may be licensable. Open-source components keep their own licenses and are handled separately.

Are pull request discussions included?

They can be. They are exported separately from the code, through a migration archive or the API.

Do I choose which repositories are included?

Yes. The signed supplier agreement sets the data in scope.

See if your company qualifies

A short company assessment. No data uploads are needed.

See if your company qualifies