No. Putting an app on GitHub doesn't make it open source. A public repository only means people can see the code. Whether you can use, change and share it depends on what the repository actually contains and which license covers that code. GitHub's licensing documentation says a public repository needs a suitable license for others to be free to use, change and distribute the software.

Open source is a bundle of rights, not a viewing option. The Open Source Initiative (OSI), which maintains the most widely cited definition, puts it this way in its Open Source Definition: "Open source doesn't just mean access to the source code." — Open Source Initiative, Open Source Definition. Think of it like a window display versus a shop that lets you walk out with the goods: seeing the code and being allowed to reuse it are two separate things.

A public GitHub repository does not automatically make an app open source

Public means visible. Open source means licensed in a way that grants specific freedoms. GitHub's documentation explains that when you publish source code in a public repository, other GitHub.com users have the right, under GitHub's Terms of Service, to view and fork it. Forking means copying a repository into your own account on the platform.

That permission is narrow. It describes what you can do on GitHub, not what you can do with the code afterward. If a repository has no license, GitHub says default copyright rules apply, so viewing and forking on the platform doesn't amount to a general right to republish modified code elsewhere. A separate grant from the rights holder, or a legal exception in a particular situation, would be a different matter.

Making a repository private later doesn't erase the past, either. GitHub says existing forks and local copies remain when a public repository goes private. Those copies still exist, but their continued existence says nothing about what anyone is allowed to do with them.

Check what the repository contains and find its license

Start with the basic question: what is actually in this repository? It might hold the application's source code. It might instead hold release files, a client, a plugin, documentation or some other piece of a bigger product. A repository name or a download button doesn't tell you which.

Then go hunting for the terms. GitHub lists LICENSE.txt, LICENSE.md and LICENSE.rst in the repository's root folder as common places for a license, and a README can also state the license. So if you don't see a file literally named LICENSE, don't jump to the conclusion that no permission exists. Check the README too.

If you find nothing anywhere, treat the code as all rights reserved by default, since GitHub says default copyright rules apply without a license. That's a starting point for caution, not a legal verdict about any particular use.

Assess the rights the license grants

A license file is only half the job. You also need to read what it lets you do. OSI's definition sets out the criteria, and the ones that matter most in practice are these:

  • You can redistribute the software.
  • You can get the source code.
  • You can create and distribute derived works, meaning modified versions.
  • The license can't discriminate against people, groups or fields of endeavor, and OSI explicitly names business use in that category.

That last point is a handy red flag. A license that says "free for personal use, no commercial use" can leave the code fully visible, but a ban on use in a field like business conflicts with OSI's definition. Visible code under that kind of term is source-available, not open source.

Can open-source software be sold?

Yes. Open source doesn't mean free of charge. OSI's redistribution criterion allows selling or giving away the software as part of an aggregate distribution, and it prohibits a license from requiring a royalty or other fee for that sale. Separately, where source code isn't included with a product, OSI's source-code criterion allows no more than a reasonable reproduction cost for obtaining it. A paid copy or a paid service is not, on its own, a sign the software is closed.

Does a condition on modified code disqualify a license?

Not automatically. OSI's definition permits a license to require that modified versions carry a different name or version number from the original. It also allows, in defined circumstances, requiring that changes be distributed as patches, as long as the license still permits distributing software built from modified source. So a license with strings attached can still qualify. What matters is whether the full license meets the definition, not whether it contains a single condition.

Check which part of the app the license covers

A license covers the material it's attached to, nothing more. An app can be made of several pieces: the source repository, a distributed build, extensions, paid features and a server. Each can be licensed differently, and an open license on one piece doesn't automatically stretch to the rest. If you plan to use an open client, for example, look separately at the terms for any server or paid component you'd rely on.

Two more limits are worth keeping in mind. A license sets permissions and conditions; it doesn't prove that the binary you downloaded was built from the published source, and it doesn't make the app secure. Those are separate questions.

A practical checklist for a GitHub app

Use this as a first-pass screen before you use, modify or share anything. It's a reading aid, not legal advice for your specific situation or jurisdiction.

What to checkWhere or how to checkWhat the result tells you
What the repository containsBrowse the files: is it application source, release files, a client, an extension or something else?Whether the code you can see is the app you actually care about
Where the license is statedRoot folder files such as LICENSE.txt, LICENSE.md, LICENSE.rst, plus the READMEWhether a grant exists; a missing single filename doesn't settle it
Rights grantedRead the terms for redistribution, source access, derived works and any restriction on who may use it or for whatWhether the terms line up with OSI's criteria or amount to visible code with limits
Restrictions by field of useLook for bans on commercial or business useA ban of that kind conflicts with OSI's definition
Conditions on modified versionsLook for renaming, version-number or patch requirementsSuch conditions can be compatible with open source if the whole license qualifies
Component coveredCompare the license with the build, extension, paid feature or server you'd actually useWhether the grant reaches the piece you're relying on

If the answers come back murky, the repository being on GitHub isn't evidence either way. Rely on the license text itself, and get qualified legal advice before acting on anything with real stakes.