Skip to content
index.ocx.sh

Grant

latest 0.6.8_20260917

License compliance scanner for container images, SBOMs and filesystems

Unaffiliated mirror. Grant is a project of Anchore, Inc.; this OCX package republishes upstream release binaries and is not endorsed by them. Upstream: github.com/anchore/grant ⁠ (opens in a new tab)

Versions · 17

click = copy identifier · right-click = more
(default)
16 more
+14

README

Grant

Grant answers what licenses are in a piece of software, and whether they are allowed. Point it at a container image, a directory, an archive, a single LICENSE file or an SBOM produced by syft, and it catalogues the license of every package it finds, resolves each to its SPDX identifier, and evaluates the result against a policy.

grant list reports the inventory without judging it. grant check applies the policy and exits non-zero when anything is denied, which is what makes it a CI gate rather than a report. The policy is deny-by-default: a package is allowed only when its license matches an allow pattern, and a package with no detectable license is denied unless you say otherwise.

What's included

  • grant — the single static binary (grant check <image|dir|sbom|LICENSE>, grant list, grant config, -o table|json, -c <policy>). No runtime dependencies.

Policy

Grant reads its policy from .grant.yaml in the working directory, or from the path given with -c. grant config prints a fully commented template:

allow:
    - MIT
    - Apache-2.0
    - BSD-3-Clause
ignore-packages: []
require-license: true        # deny packages with no detected license
require-known-license: false # deny non-SPDX / unparsable licenses

Allow patterns support globs, so BSD-* covers the family.

Links

Install

Platforms

Linux amd64arm64
macOS amd64arm64

Metadata

registry
license
Apache-2.0
revision
c34d0279f483158f20f07b849af5242191cc0660
owners
@ocx-bot
latest
0.6.8_20260917
tags
17