Skip to content
ocx
install

Grant

latest 0.8.0_20261117

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 · 23

click = copy identifier · right-click = more
(default)
22 more
+2
+2
+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
94291337a0e60aa5e3615fa3ec88d7314060b7a4
owners
@ocx-bot
latest
0.8.0_20261117
tags
23