How to specify a license for a software record on Github

When processing a new software release ingested via the Github integration, Zenodo determines the license of the source code based on the following sources, in priority order:
  1. A .zenodo.json file
  2. A CITATION.cff file
  3. The license that is specified in the GitHub repository (find more information on Github)
  4. Zenodo's default license (if none of the above are provided)

Zenodo relies on the widely used SPDX list of licenses. If the license is specified in either a .zenodo.json or CITATION.cff,  it can be declared, respectively:
 
{
    "license": "afl-1.1"
}

or

    license: "amdplpa"


If you are using a CITATION.cff , validating it before releasing your software is a good practice. Consider using tools such as cff-converter to validate your citation file.