Skip to main content

Licenses

See every license your code depends on, judge them with license policies that allow, send to review or deny each license, allow single packages, and look up private packages in your own registries.

Every dependency comes with a license, and some licenses carry obligations your business cannot accept. Vulnara collects the license of every package your repositories depend on, judges each one against your team's license policy, and turns the packages that break it into license findings you can triage like any other.

What it is for

  • Knowing which licenses you ship, in which packages and repositories, without reading every manifest.
  • Catching a strong copyleft or a non-commercial license before it reaches a release.
  • Writing your rules down once, as a policy, and applying them to every repository.

How it works

Where licenses come from

Licenses are collected by the dependency scan of each repository's default branch, so there is no separate license scan to start. Every package in the repository's manifests and lock files is recorded with its version, its ecosystem, whether it is a direct or an indirect dependency, and whether it is only a dev dependency. Vulnara reads each package's license from its manifest, from your own package registry, or from public package metadata. A package whose license cannot be found or read is marked unknown, with the reason.

License categories

Every license falls into a category:

  • Forbidden: licenses that should never ship, such as the Commons Clause or a non-commercial license.
  • Restricted: strong copyleft such as GPL and AGPL. Distributing the software brings source obligations.
  • Reciprocal: weak copyleft such as MPL and EPL. Changes to the library itself must be shared.
  • Notice: MIT, Apache-2.0, BSD and ISC. Keep the copyright notice.
  • Permissive: permissive licenses that are not notice licenses. Often empty.
  • Unencumbered: public domain dedications such as CC0 and the Unlicense.
  • Unknown: a license that fits no category.

Licenses are named by their SPDX id, the standard short name such as MIT, Apache-2.0 or GPL-3.0-only.

License policies

A license policy says what happens to a package depending on its license: Allow, Review or Deny. It has:

  • Rules: an action for each license category, and for an Unknown license, which can be sent to review or denied but never allowed.
  • License overrides: one license with its own action, whatever its category says.
  • Package exceptions: a package allowed under a license the policy would otherwise flag, for every version or a version range, with a reason and an optional expiry date. An expired exception no longer applies, and its findings come back.
  • Dev dependencies: Evaluate, to check dev dependencies like any other package, or Skip, to leave them out. Dev dependencies are recognised for npm, yarn, pnpm, Composer, Poetry, uv and Gradle; for other package managers every package counts as a production dependency.

A new policy starts from a template: Blank, SaaS or internal service, Distributed software or Permissive only. Templates are starting points, not legal advice.

Which policy applies

Each repository is judged by one policy, the first that exists of:

  1. the policy assigned to the repository,
  2. the policy assigned to its workspace,
  3. the team default.

With no policy at all, packages are still collected but nothing is evaluated, and Vulnara asks you to create a default policy. When you change a policy, its findings are re-evaluated straight away.

License findings

A package that a policy denies or sends to review becomes a license finding, in the Licenses category. Each finding names the package, its version, the file it was found in, the licenses that were flagged, the reason (denied, needs review or unknown) and the policy that produced it.

Each repository also has a license status: Compliant, Needs review, Violations, No policy or Not scanned. The license status is kept apart from the security score: license findings do not lower it.

The Licenses page

Open Licenses under Assets in the sidebar, below Repositories. It has three tabs.

  • Inventory: every license in your repositories, worst first (denied, to review, unknown, allowed), with its packages, repositories and ecosystems. Small tiles beside the title count the licenses per verdict, and quick filters next to the search narrow the list to Denied, To review, Unknown or Allowed. Filter by ecosystem, sort by any column or export the list as CSV. Open a license to see its packages, each with its version, ecosystem, whether it is direct or a dev dependency, and the repositories using it, with a link to the license findings.
  • Policies: your license policies, which one is the default, and where each is used. Open one to edit it.
  • Registries: your private package registries. See Private package registries.

A repository's own licenses are on its Licenses tab: its license status, the policy that applies and where it comes from, and its packages with their versions, licenses and sources. The Repositories list has a License column with each repository's license status.

Private package registries

Packages from a private registry are not found on public services, so their licenses read as unknown until you add the registry. A registry has a name, an ecosystem (npm, PyPI, Maven, NuGet, Cargo, RubyGems or Composer), a URL, optional scopes, an optional token and an optional connector agent.

  • Scopes: packages matching a scope are looked up only in this registry and never on a public service. Set a scope for every private namespace, so none of its packages is ever looked up publicly.
  • Token: the registry's access token, or user:password for a registry that signs in with a username and password. A token is never shown again once saved. Leave the field empty to keep it.
  • Connector agent: reach a registry on a private network through one of your team's agents. See Reach a network through a connector agent.

Deleting a registry makes the packages in its scopes show as unknown on the next scan, until another registry covers them.

What you can set

  • License policies: create, edit, set as default and delete. A policy that is the default or still assigned cannot be deleted.
  • The policy of a repository: License policy in the repository's actions, or Inherit to follow its workspace and the team default.
  • The policy of a workspace: from the workspace, for its repositories that have no policy of their own.
  • Package exceptions: in the policy editor, or Allow this package on a license finding, which adds an exception to the policy for every repository it applies to.
  • Package registries: on the Registries tab.

Do it

  1. Create a default policy

    Open Licenses, go to Policies and choose New policy. Pick the template closest to how you ship, name the policy, tick Set as team default and create it. Then adjust its rules, overrides and dev dependencies, and save.

  2. Scan

    Scan your repositories as usual. The next scan of each default branch collects the licenses. See Run a scan.

  3. Review the results

    Open Licenses for the inventory, or open the findings explorer and choose the Licenses finding type. Group the findings by License or by Package, and filter by repository, action, license, category, relationship, dev dependency or decision.

  4. Decide

    Open a finding group to see its findings. Record a decision on a single finding, or choose Allow this package to add a package exception with a reason and, if you like, an expiry date.

To automate it:

Good to know

  • Creating, editing and deleting policies, package exceptions and registries needs the Admin role. Assigning a policy to a repository or a workspace needs the Editor role. Everyone in the team can read them.
  • License scanning is switched on per team. When it is off, the license screens say so: what was collected before stays readable, but nothing new is evaluated and policies, exceptions and registries cannot be changed.
  • A repository with no package manifest or lock file has no licenses to collect.
  • The old addresses under Settings for license policies and package registries open the matching tab of the Licenses page.