Skip to content
GitHub

GuideSupply chain

Licenses

In the panel: Supply chain › Licenses/supply/licensesNeeds analyses:read

Check every third-party package against your license policy, see which repositories pull in a denied or unknown license, and record exceptions with a reason and an end date.

In the panel · Supply chain › Licenses
LicensesMy teams6All I can see21Team: Any ▾
4,812 packages checked · +362 denied · +15 need review11 unknown license · −3
MIT 82%Apache-2.0 9%ISC 5%other 4%
Package Version License Verdict Ecosystem Repositories
pdf-maker 2.3.0 AGPL-3.0-only denied npm 1
chart-core 1.8.4 GPL-3.0-or-later denied npm 2
locale-data 0.4.1 LGPL-2.1-only needs review npm 5
example.org/codec 0.2.0 — unknown Go 1

Counts compare with the scans about a week ago.

The newest license scan of every repository you may read analyses of, in four parts:

  • The strip: packages checked, denied, need review and unknown license, each with its change against the scans about a week older. Under My teams the counts sum your teams’ repositories, without changes.
  • The license mix as a bar.
  • Violations: denied, not-allowed and unknown packages with their versions, licenses and repositories. Filter by verdict and ecosystem, sort, and use the scope switch for teams.
  • Repositories: one row per repository with its counts per verdict, whether it has a license file and when it was last scanned. A row opens the repository hub’s Supply chain tab.

Below them sits the policy summary. Its Edit opens the license settings. You see the policy only with settings:read on the organization.

Every package gets one verdict when the scan runs; the scan stores the policy it used, so a report always shows what was decided then.

Verdict Meaning
allowed Its license matches the allow list.
needs review Matches neither list, or matches the review list. Weak copyleft such as LGPL lands here by default.
denied Matches the deny list. A violation.
unknown The registry declares nothing usable. A warning, or a violation if the policy says so.
excepted Would not pass, but an exception accepts it. Not a violation.
internal Published by one of your own repositories; not judged.
ignored Its name is on the ignore list, or it is dev-only and the policy skips dev dependencies.

Expressions are judged as SPDX defines them: MIT OR GPL-3.0 takes the better side and is allowed, MIT AND GPL-3.0 takes the worse and is denied.

Click a violation, or move with J / K and press ↵.

In the panel · Supply chain › Licenses › chart-core
chart-core

denied

npm2 of 18Add exception…Copy request
Repositories2Policy
Declared license
GPL-3.0-or-later
Verdict
denied
Rule
deny: GPL-*

Repositories lists where the package is used, with versions and lockfiles. Policy shows the declared license, the verdict and the rule behind it.

Copy request copies a note asking the team to find an alternative package, ready to paste into a ticket or a chat.

Sometimes a license is fine for one package: a legal sign-off, a commercial license bought separately. Add exception… accepts it. It needs settings:write.

In the panel · Supply chain › Licenses › Add exception
Exception for chart-core
Packagechart-core
LicenseGPL-3.0-or-laterLeave empty to accept any license
ReasonCommercial license bought, see ABC-123
Last dayYYYY-MM-DDOptional; scanned again after this day
CancelAdd exception
  1. Open the violation and choose Add exception….
  2. Keep the package name, optionally narrow it to the declared license, and write the reason.
  3. Pick a last day if the exception should run out.
  4. Save. The entry goes into the license settings that apply to the package’s repositories, or into a new entry for repositories on the defaults.

The next scan turns the package excepted. Once the last day has passed, the next scan judges it again.

The policy is the analyzers.licenses setting, scoped like every setting. Presets set the allow list, the deny list and the handling of unknown licenses together:

Preset For Allows Denies Unknown
commercial products shipped to customers permissive GPL, AGPL, source-available warning
no-copyleft code that must stay permissive permissive every copyleft, source-available violation
open-source projects under a free license permissive, weak copyleft, GPL, AGPL, EUPL source-available warning; repository needs a license file
internal never distributed outside permissive, weak copyleft, GPL AGPL, source-available warning
flag-missing on top of any policy unchanged unchanged violation; repository needs a license file

Without a setting, permissive licenses (MIT, ISC, BSD, Apache-2.0 and similar) are allowed and GPL-*, AGPL-* and SSPL-* are denied. Further options:

analyzers.licenses
{
"review": ["MPL-2.0"],
"ignore": ["@acme/*"],
"unknown": "violation",
"devDependencies": "ignore",
"requireProjectLicense": true
}
Option Effect
review Licenses that need a sign-off even when the allow list matches.
ignore Package names (globs) whose licenses are not judged.
unknown warn (default) reports unknown licenses apart; violation judges them.
devDependencies ignore skips packages only dev dependencies pull in.
requireProjectLicense Warns when a repository has no license file at its root.

The repository hub’s Supply chain tab shows the same view for one repository, and says when it has no license scan yet.