Choosing and adding a LICENSE
Why it matters
Code without a license is all rights reserved: nobody may legally use, modify or redistribute it, whatever the repository settings say.
How to fix it
What to do: Add a
For a private/commercial project add to
LICENSE file to the repository root.# MIT license (most popular for open-source):
# Copy the text from: choosealicense.com/licenses/mit/
# and save it as LICENSE
# Or via GitHub:
# Settings → Add file → Create new file → type "LICENSE"
# → GitHub will prompt you to choose a license template
For a private/commercial project add to
package.json:{ "license": "UNLICENSED", "private": true }Does your repository pass this check?
Free for public GitHub repositories, no account needed. 50+ DevOps and security checks in about ten seconds.