Generate third-party attribution artifacts (NOTICE + "Third Party Licenses" HTML) from a CycloneDX JSON SBOM.
It is intended to be used in CI/CD to produce release artifacts that can be shipped alongside binaries/images.
By default, it writes:
third_party/THIRD_PARTY_LICENSES.html: grouped by license, with license texts and "used by" list. Based on cargo-about (default example available here)third_party/NOTICE.md: per-dependency copyright/notice block (only for deps that expose copyright)third_party/licenses/*.txt: cached SPDX license texts
-
Place the SBOM in
third_party/sbomBy default, Assimilis looks for
third_party/sbom/<REPO_NAME>.cdx.json. The SBOM must have this exact naming pattern. -
Run Assimilis
From your repository root:
assimilis --repo-name <REPO_NAME>
The fetch command supports two types: sbom (the default) and repo-code. The Aikido client credentials are read only from the environment:
export AIK_CLIENT=<CLIENT_ID>
export AIK_SECRET=<CLIENT_SECRET>
assimilis fetch \
--repo-name <REPO_NAME> \
--branch <BRANCH>The command writes the SBOM to third_party/sbom/<REPO_NAME>.cdx.json, generates the normal attribution files, and updates third_party/.last_generated_at only after generation succeeds.
To fetch only the repository code, use --type repo-code:
repo_code=$(assimilis fetch --type repo-code --repo-name traefik --branch v2.11)
assimilis fetch --repo-name traefik --repo-code "$repo_code"The repo-code type writes only the code and a newline to stdout. --repo-code or AIKIDO_REPO_CODE overrides automatic lookup for either type; an explicit flag takes precedence over the environment variable. When requesting only an explicitly supplied code, no Aikido credentials are needed.
By default, the lookup name is --repo-name. If the repository's name in Aikido differs from the output filename, set --aikido-repo-name or AIKIDO_REPO_NAME:
assimilis fetch --repo-name traefik --aikido-repo-name '<NAME_IN_AIKIDO>' --branch v2.11Lookup trims the name and branch, compares repository names without regard to case, and matches branch names exactly. It checks all result pages, up to 100 pages of 200 repositories, and fails if no repository or multiple repositories match, or if the page limit is reached before pagination finishes.
The options can also be configured through environment variables:
| Option | Environment variable | Default |
|---|---|---|
--type |
AIKIDO_FETCH_TYPE |
sbom |
--repo-code |
AIKIDO_REPO_CODE |
|
--aikido-repo-name |
AIKIDO_REPO_NAME |
--repo-name |
--branch |
AIKIDO_BRANCH |
|
--aikido-base-url |
AIKIDO_BASE_URL |
https://app.aikido.dev |
Assimilis can verify that the attribution files were recent when a release commit was created:
assimilis validateBy default, the command:
- reads
third_party/.last_generated_at; - validates
HEAD; - allows up to
12hbetween attribution generation and the release commit.
To validate a specific tag or use a different maximum age:
assimilis validate \
--release-ref v2.1.0 \
--max-age 2dThe options can also be configured through environment variables:
| Option | Environment variable | Default |
|---|---|---|
--max-age |
MAX_AGE |
12h |
--release-ref |
RELEASE_REF |
HEAD |
--timestamp-file |
TIMESTAMP_FILE |
<output-dir>/.last_generated_at |
NAME:
assimilis - Generate OSS attribution files
USAGE:
assimilis [global options] [command [command options]]
COMMANDS:
version Display version information
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--repo-name string Name of the repository
--output-dir string Base output directory (default: "third_party")
--html-template string Override HTML template path (default: embedded)
--notice-template string Override NOTICE template path (default: embedded)
--spdx-version string SPDX license-list-data version/tag (default: "v3.27.0")
--html-filename string Output HTML filename (default: "THIRD_PARTY_LICENSES.html")
--notice-filename string Output NOTICE filename (default: "NOTICE.md")
--license-map string Path to external license-map JSON (default: embedded)
--license-corrections string Path to external license-corrections JSON (default: embedded)
--filters string Path to external filters JSON (default: embedded)
--help, -h show help
Assimilis ships with an embedded license-map.json that normalizes non-standard license expressions to SPDX IDs (e.g. "Python Software Foundation License" β "PSF-2.0"). To provide your own, use --license-map path/to/license-map.json.
Assimilis can apply per-PURL license corrections via license-corrections.json. Entries take priority over whatever the SBOM reported, so they can both fill in absent licenses (when the SBOM generator failed to detect one) and correct wrong ones (when the SBOM generator reported an incorrect license). The embedded license-corrections.json covers known gaps. To provide your own, use --license-corrections path/to/license-corrections.json.
Example:
{
"pkg:golang/std": "BSD-3-Clause",
"pkg:npm/config-chain": "MIT"
}Keys are matched as PURL prefixes β "pkg:golang/std" matches "pkg:golang/std@go1.25.3", and "pkg:golang/github.com/foo/bar" matches sub-packages like "pkg:golang/github.com/foo/bar/v2/sub@v2.1.0".
If a component uses a non-SPDX license ID or an unmapped license expression, Assimilis expects a corresponding license text file in third_party/licenses/custom.
Example:
third_party/licenses/custom/LicenseRef-<CUSTOM_LICENSE_NAME>.txtIf the text is missing, generation fails.
- Myrmica Lobicornis π: Update and merge pull requests.
- Myrmica Aloba π: Add labels and milestone on pull requests and issues.
- Messor Structor π: Manage multiple documentation versions with Mkdocs.
- Lasius Mixtus π: Publish documentation to a GitHub repository from another.
- Myrmica Bibikoffi π: Closes stale issues
- Chalepoxenus Kutteri π: Track a GitHub repository and publish on Slack.
- Myrmica Gallienii π: Keep Forks Synchronized