uzomuzo accepts PURLs and GitHub URLs as input. By combining it with SBOM generators like Trivy or Syft, you can assess the lifecycle health of every dependency in a container image or repository.
The scan subcommand accepts CycloneDX SBOM JSON directly — no jq extraction needed. It provides a summarized verdict view and supports --fail-on for CI exit code gating.
# Trivy scans go.mod/package-lock.json/etc. and outputs CycloneDX SBOM
trivy fs . --format cyclonedx | ./uzomuzo scan --sbom -trivy image my-app:latest --format cyclonedx | ./uzomuzo scan --sbom -syft . -o cyclonedx-json | ./uzomuzo scan --sbom -# Fail the build if any dependency is end-of-life.
# An archived repository with no EOL signal is labelled Stalled, not EOL (ADR-0020),
# so add `archived` to --fail-on if the build should stop for those too
# (`stalled` would also stop on repositories that have merely gone quiet).
trivy fs . --format cyclonedx | ./uzomuzo scan --sbom - --fail-on eol-confirmed,eol-effective --format json
# Exit code 0 = no dependencies matched --fail-on policy
# Exit code 1 = at least one dependency matched --fail-on policyFor Go-only projects, scan can read go.mod directly without an SBOM tool:
./uzomuzo scan # auto-detect go.mod in cwd
./uzomuzo scan --file go.mod # explicit pathThe examples below use the pipe mode for detailed per-package analysis. Use this when you need the full 17+ column output for each dependency rather than the summarized verdict view.
# Scan a single PURL
./uzomuzo scan pkg:golang/github.com/future-architect/vuls@v0.36.2
# Scan a GitHub repository
./uzomuzo scan https://github.com/future-architect/vulsGenerate a CycloneDX SBOM from a container image, extract PURLs, and pipe them into uzomuzo:
trivy image --scanners vuln --list-all-pkgs --format cyclonedx bitnami/node \
| ./uzomuzo scan --sbom - --fail-on eol-confirmed,eol-effectiveThis workflow:
- Trivy scans the container image and outputs a CycloneDX SBOM (JSON).
- uzomuzo scan reads the SBOM from stdin and evaluates each component's lifecycle status.
--fail-oncauses exit code 1 when any component matches the specified lifecycle labels.
You can omit --fail-on to see the full lifecycle classification for every component without failing the build.
Note: When the SBOM includes a CycloneDX
dependenciessection, only direct dependencies are shown by default. In OSS health assessment, transitive dependency issues are not directly actionable — the resolution path is to update the direct dependency that pulls them in. Add--show-transitiveto include transitive dependencies in the output. SBOMs without dependency graph information show all components.
Assess the health of all transitive dependencies of a GitHub repository:
trivy repo --scanners vuln --list-all-pkgs --format cyclonedx https://github.com/future-architect/vuls \
| ./uzomuzo scan --sbom - --fail-on eol-confirmed,eol-effectiveThis identifies EOL or stagnant packages hidden deep in the dependency tree — packages that traditional SCA scanners may report as "0 vulnerabilities" but are operationally abandoned.
When uzomuzo flags an EOL dependency, the next question is: who depends on it?
For Go projects, go mod why traces the import chain:
# Step 1: Run uzomuzo to find EOL packages
./uzomuzo scan https://github.com/future-architect/vuls
# Step 2: For each flagged EOL package, trace the dependency chain
go mod why github.com/pkg/errorsExample output:
# github.com/pkg/errors
github.com/future-architect/vuls/contrib/snmp2cpe/pkg/cmd/convert
github.com/pkg/errors
This tells you exactly which module in your project imports the EOL package, so you can prioritize remediation at the right level.
Syft is another SBOM generator that works with the same pipeline:
syft bitnami/node -o cyclonedx-json \
| ./uzomuzo scan --sbom - --fail-on eol-confirmed,eol-effectiveIf you prefer to inspect the PURL list before analysis, save to a file first:
# Generate and save PURLs
trivy image --format cyclonedx bitnami/node | jq -r '.components[].purl' > purls.txt
# Review the list
wc -l purls.txt # check count
head purls.txt # inspect format
# Run analysis
./uzomuzo scan --file purls.txt --sample 500This workflow shows uzomuzo's findings on the go.mod lines they belong to, in the pull request and in the repository's Security tab. It never fails the job on a finding, so it is safe to add to a repository that already has flagged dependencies.
# .github/workflows/dependency-health.yml
name: Dependency Health
on:
pull_request:
paths: [go.mod]
push:
branches: [main]
paths: [go.mod]
permissions:
contents: read
security-events: write # needed to upload the results
env:
UZOMUZO_VERSION: vX.Y.Z # a release that has --format sarif (after v0.12.1)
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install uzomuzo
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd "$RUNNER_TEMP"
asset="uzomuzo-oss_${UZOMUZO_VERSION#v}_linux_amd64.tar.gz"
gh release download "$UZOMUZO_VERSION" --repo future-architect/uzomuzo-oss \
--pattern "$asset" --pattern checksums.txt
sha256sum --check --ignore-missing checksums.txt
tar -xzf "$asset" uzomuzo
echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
- name: Scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: uzomuzo scan --file go.mod --format sarif > uzomuzo.sarif
- name: Upload to code scanning
uses: github/codeql-action/upload-sarif@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
with:
sarif_file: uzomuzo.sarif
category: uzomuzoRun the push trigger at least once: GitHub compares a pull request's results with the base branch's.
What to expect:
- Finding on a line the PR did not change: shown in the Security tab, and GitHub's check still passes.
- Failing the job: add
--fail-on eol-confirmed,eol-effectiveto the scan. uzomuzo then exits 1 on any matching dependency, including ones the PR did not touch, and the upload step needsif: always()to still run. - Private repositories: code scanning needs a GitHub Code Security license. Without one the upload fails; use the CI pipeline example instead.
- Pull requests from forks: their
GITHUB_TOKENis read-only, but GitHub allows code scanning uploads frompull_requestruns. - Other ecosystems: generate an SBOM first and scan it with
--sbom sbom.json. Results attach to the SBOM file at line 1, not to a dependency's line, because an SBOM does not say where a dependency is declared.
uzomuzo includes a ready-to-use GitHub Actions workflow (.github/workflows/dependency-scan.yml) that runs a monthly dependency scan and creates a GitHub Issue with the results. It installs a pinned uzomuzo release, so the same file works in any repository.
- Generates SBOM using Trivy (CycloneDX format)
- Runs
uzomuzo scanwith detailed output (summary table + per-dependency analysis) - Creates a GitHub Issue with the summary table as a monthly report
- Uploads artifacts (SBOM + detailed report) for download
Runs automatically on the 1st of each month at 09:00 UTC. Can also be triggered manually via workflow_dispatch.
# Run with defaults (fail-on: eol-confirmed)
gh workflow run dependency-scan.yml
# Run without CI gate (never fail)
gh workflow run dependency-scan.yml --field fail-on=""
# Disable issue creation
gh workflow run dependency-scan.yml --field create-issue=false| Input | Default | Description |
|---|---|---|
fail-on |
eol-confirmed |
Comma-separated lifecycle labels that trigger exit 1 (empty = never fail) |
extra-args |
(empty) | Extra arguments passed to uzomuzo scan |
create-issue |
true |
Create a GitHub Issue with scan report |
See Issue #95 for a demo report showing EOL detection across npm, PyPI, and Go ecosystems.
The workflow creates a GitHub Issue with the dependencies label on each run. To receive Slack notifications, use GitHub's native Slack integration:
# In your Slack channel:
/github subscribe owner/repo issues
# Filter to dependency scan reports only:
/github subscribe owner/repo issues label:"dependencies"
This sends a Slack notification whenever a scan report issue is created, with no secrets or webhook configuration needed.
- Copy
.github/workflows/dependency-scan.ymlto your repository. Change nothing else to start: the workflow's ownGITHUB_TOKENgives uzomuzo commit history and repository state. - Ensure the
dependencieslabel exists (the workflow uses it for issues) - Run it once to check the setup:
gh workflow run dependency-scan.yml --field create-issue=false - To move to a newer uzomuzo, change
UZOMUZO_VERSIONat the top of the file - Optionally configure Slack notifications via
/github subscribe(see above)
Options can be combined with SBOM input:
# CI gate with JSON output
trivy repo --format cyclonedx https://github.com/example/app \
| ./uzomuzo scan --sbom - --fail-on eol-confirmed --format json
# Table output for quick triage
trivy image --format cyclonedx my-app:latest \
| ./uzomuzo scan --sbom - --format table