Back to articles

Check code, model and data licences separately before reuse

A downloadable resource can contain several sets of terms. Build a component inventory, check the activity you intend to perform, and preserve unresolved rights questions before sharing files.

By Mangandi editorial

Published

Being able to download a resource is only the start of a reuse decision. A repository may combine application code, model weights, example data, documentation and assets from several publishers. Begin by identifying which components you intend to use and which files you intend to pass on to someone else.

Visibility and permission answer different questions

GitHub's licensing guidance explains that publishing a repository without a licence does not grant the usual rights to reproduce, distribute or make derivative works. GitHub's platform terms separately allow some activity, such as viewing and forking public repositories on GitHub. Do not treat those platform functions as a general permission for your own distribution or product. [1]

The Open Source Definition also requires more than access to source code. Its criteria address matters including redistribution, modifications and use across fields of endeavour. When a resource uses a different or restricted licence, describe the actual terms and the publisher's terminology precisely instead of assuming that every publicly downloadable resource is open source. [2]

Build a component inventory

For each component, record its name, publisher, exact revision, source address, licence identifier if present, and the location of the licence text. Note which files the terms cover. Check notices and linked terms rather than copying only the label displayed on a repository page.

Hugging Face supports licence information in repository card metadata for resources such as models and datasets. This is a useful starting point for finding terms, but your review still needs the applicable text and its scope. [3]

An illustrative example: an application could use MIT-licensed code alongside separately licensed model weights and a dataset with its own conditions. The code's licence would not, by itself, answer whether you may redistribute the weights or republish the dataset. This example is a review pattern, not an assessment of a named project.

Write down the intended activity

Separate local experimentation, use inside a business, provision of a hosted service, modification or fine-tuning, and redistribution of files. For each activity you actually plan, check the relevant terms for permissions, conditions and restrictions. Record required notices, attribution or source-sharing obligations when the licence imposes them. Do not infer that an obligation applies merely because another resource uses it.

If a project provides an SPDX identifier or licence expression, preserve it exactly in your inventory. SPDX provides standard identifiers and expressions to make licence information more consistent; an identifier is a way to record terms, not a substitute for reading them or establishing the provenance of all included material. [4]

Resolve uncertainty before redistribution

If a licence file is missing, conflicts with another notice, or leaves the intended activity unclear, mark that component as unresolved. Seek clarification from the rights holder or obtain qualified review for the specific use. Keep the source link available while you resolve the question; do not present an uncertain permission as an approved download.

Mangandi's suggested decision record has four parts: the exact component and version, the planned activity, the terms and evidence consulted, and any conditions or open questions. Keep this record with the release you actually use. Revisit it when the component, licence or intended use changes.

This workflow helps organise a rights review. It is not a legal determination, and it does not establish that a publisher holds every right in material they upload. Sources checked 8 November 2026.

Sources

  1. GitHub Docs — Licensing a repository (docs.github.com; opens in a new tab)
  2. Open Source Initiative — The Open Source Definition (opensource.org; opens in a new tab)
  3. Hugging Face Hub — Licenses (huggingface.co; opens in a new tab)
  4. SPDX — Handling License Info (spdx.dev; opens in a new tab)